Beispiel #1
0
        public override void Print()
        {
            GoodPupil gp = new GoodPupil();

            gp.Study();
            gp.Read();
            gp.Relax();
            gp.Write();
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            Pupil     goodp      = new GoodPupil("Good marks", "Alex", "Papirnyk");
            Pupil     excellentp = new ExcellentPupil("Amazing marks", "Gabe", "Newell");
            Pupil     badpupil   = new BadPupil("Bad marks", "Ivan", "Ivanov");
            Pupil     badpupil1  = new BadPupil("Bad marks", "Ivanov", "Ivanko");
            ClassRoom classRoom  = new ClassRoom(goodp, excellentp, badpupil);

            classRoom.Addpups(badpupil1);
            classRoom.Show();
            Console.ReadLine();
        }