logo

Crowdly

Browser

Add to Chrome

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

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

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

class ExceptA: ApplicationException {}

class ExceptB: ExceptA {}

public static void Main ()

{ string a = Console.ReadLine(); string b = Console.ReadLine();

try {if (a == "end") throw new ExceptA();

else if (b == "exit") throw new ExceptB();

else throw new Exception();

}

catch (ExceptB) {Console.Write ( "Виняток-1"); }

catch (ExceptA) {Console.Write ( "Виняток-2"); }

catch (Exception) {Console.Write ( "Виняток-3"); }

}

Користувач збирається після запуску програми ввести noі yes. Вкажіть результат виведення на консоль після спроби запустити програму на компіляцію і виконання:

C# oop_class

0%
0%
0%
0%
0%
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