static void Main(string[] args) { Group K220 = new Group("K-220"); K220.AddStudent(new GoodStudent("Iван Iваненко")); K220.AddStudent(new GoodStudent("Василь Василецький")); K220.AddStudent(new BadStudent("Олег Олежчук")); K220.AddStudent(new GoodStudent("Петро Петров")); K220.GetInfo(); K220.GetFullInfo(); Console.ReadKey(); GoodStudent stGood = new GoodStudent("Євген Хороший"); stGood.Study(); Console.WriteLine(); Console.ReadKey(); BadStudent stBad = new BadStudent("Євген Поганий"); stBad.Study(); }
static void Main() { Student s1 = new GoodStudent(); Student s2 = new BadStudent(); Student s3 = new ExcelentStudent(); Student s4 = new Student(); ClassRoom group = new ClassRoom(s1, s2, s3, s4); group.Study(); Console.WriteLine(new string('-', 30)); group.Read(); Console.WriteLine(new string('-', 30)); group.Write(); Console.WriteLine(new string('-', 30)); group.Relax(); Console.ReadKey(); }