✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
class MyException1: ApplicationException
{ рublic new string HelpLink = "Readme.txt";
public MyException1(): base ( "Виняток-1") {}
public static int Метод()
{ int s = 5;
try {s = s / (s - 5); }
catch (DivideByZeroException)
{Console.Write ( "Виняток-2"); throw new MyException1(); }
return s;
}}
class Test
{ рublic static void Main ()
{ int s = 21;
try {s = MyException1.Method(); }
catch (MyException1 ex) {Console.Write (ex.HelpLink + ex.Message); }
Console.WriteLine ( "s =" + s);
}}
Вкажіть результат виведення на консоль після спроби запустити програму на компіляцію і виконання:
C# oop_class