Example #1
0
        static void Main(string[] args)
        {
            Pupil s***n = new ExcelentPupil("S***n");
            Pupil ivan  = new BadPupil("Ivan");
            Pupil elena = new GoodPupil("Elena");
            Pupil vasya = new GoodPupil("Vasiliy");

            ClassRoom class1 = new ClassRoom(s***n, ivan, elena, vasya);

            class1.ClassRoomShow();
        }
Example #2
0
        static void Main(string[] args)
        {
            Pupil First  = new GoodPupil("Борис");
            Pupil Second = new ExcelentPupil("Данил");
            Pupil Third  = new GoodPupil("Виктор");
            Pupil Forth  = new BadPupil("Алексей");

            var firstClassRoom  = new ClassRoom(First);
            var secondClassRoom = new ClassRoom(First, Second);
            var thirdClassRoom  = new ClassRoom(First, Second, Third);
            var forthClassRoom  = new ClassRoom(First, Second, Third, Forth);

            Console.WriteLine("\nЧтение");
            forthClassRoom.GetPupilsRead();
            Console.WriteLine("\nПисьмо");
            forthClassRoom.GetPupilsWrite();
            Console.WriteLine("\nУчеба");
            forthClassRoom.GetPupilsStudy();
            Console.WriteLine("\nОтдых");
            forthClassRoom.GetPupilsRelax();
        }