#1385537
Соотнесите интерфейсы и соответствующие им классы:
Варианты ответа:
  • interface Interface1 {     void Execute(); }
  • interface Interface1 {     string Execute(string[] arr); }
  • interface Interface1 {     void Execute1();     int Execute2(); }
  • interface Interface1 {     int Execute(int a); }  
  • class Test: Interface1 {     void Execute()     { WriteLine("A");     } }
  • class Test: Interface1 {     string  Execute(string[] arr)     {          string str=””;          foreach(string s in arr)          {                str+=s;          }           return str;     }     }
  • class Test: Interface1 {     int Execute2()     {         return a*2;     }     void Execute1()     { WriteLine("A");     }   }
  • class Test: Interface1 {     int Execute(int a)     {         return a*2;     } }
Курсы в категории: Информационные технологии