logo

Crowdly

Browser

Add to Chrome

Наведеним нижче кодом є простір імен System. class MyException1: ApplicationE...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Наведеним нижче кодом є простір імен System.

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

More questions like this

Want instant access to all verified answers on moodle.chnu.edu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome