Beispiel #1
0
        public override void Print()
        {
            BadPupil bp = new BadPupil();

            bp.Study();
            bp.Read();
            bp.Relax();
            bp.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();
        }