✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
class Вуз { рublic string назву;
public Вуз (string н) {назва = н; }}
class Student { рrivate string surname; private Вуз вуз;
public Student (string фам, Вуз уз)
{Surname = фам; вуз = уз; }
public override string ToString()
{Return string.Format ( "{0} вчиться в {1}", surname, вуз.названіе); }}
class Program
{ static void Main (string [] args)
{ student [] студенти = new Student [2];
Вуз вуз1 = new Вуз ( "МГУ");
Вуз вуз2 = new Вуз ( "ГУ-ВШЕ"); вуз1 = вуз2;
студенти [0] = new Student ( "Ivaniv", вуз1);
студенти [1] = new Student ( "Petrenko", вуз2);
System.Console.WriteLine (студенти [0]);
}}
Вкажіть результат виведення на консоль після спроби запустити програму на компіляцію і виконання:
C# oop_class