#1385552
interface Interface1 { void Execute(); } interface Interface2 { void Execute(); } class Test: Interface1, Interface2 { void Interface1.Execute() { Console.WriteLine("A"); } void Interface2.Execute() { Console.WriteLine("B"); } } При исполнении следующей ниже программы … Test t = new Test(); t.Execute();
Варианты ответа:
- выведется “A”
- выведется “B”
- код не скомпилируется
Курсы в категории:
Информационные технологии