Beispiel #1
0
        static void Main(string[] args)
        {
            ExcelentPupil excelentPupil = new ExcelentPupil("S***n");
            BadPupil      badPupil      = new BadPupil("Stas");
            GoodPupil     goodPupil     = new GoodPupil("Leha");
            GoodPupil     goodPupil2    = new GoodPupil("Vasya");

            goodPupil.Study(4);
            goodPupil.Read(4);
            goodPupil.Write(4);
            goodPupil.Relax(3);

            goodPupil2.Study(4);
            goodPupil2.Read(4);
            goodPupil2.Write(4);
            goodPupil2.Relax(3);

            excelentPupil.Study(5);
            excelentPupil.Read(5);
            excelentPupil.Write(5);
            excelentPupil.Relax(2);

            badPupil.Study(2);
            badPupil.Read(2);
            badPupil.Write(2);
            badPupil.Relax(5);

            ClassRoom classRoom = new ClassRoom(goodPupil, goodPupil2, badPupil);

            classRoom.pupilsClass.Add(excelentPupil);
            classRoom.Show();
            Console.ReadLine();
        }
Beispiel #2
0
        public void BadPupils()
        {
            BadPupil badPupil = new BadPupil(pupilOne, pupilTwo, pupilThree, pupilFour);

            badPupil.Study();
            badPupil.Read();
            badPupil.Write();
            badPupil.Relax();
        }