Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Pupil vasya = new BadPupil();
            Pupil fedya = new GoodPupil();
            Pupil dosya = new ExcelentPupil();

            ClassRoom Class_A = new ClassRoom(vasya, fedya);
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            Pupil one   = new ExcellentPupil();
            Pupil ender = new GoodPupil();

            ClassRoom classs = new ClassRoom(one, ender);

            classs.Study();
            Console.WriteLine(new string('-', 30));
            classs.Read();
            Console.WriteLine(new string('-', 30));
            classs.Write();
            Console.WriteLine(new string('-', 30));
            classs.Relax();
            Console.WriteLine(new string('-', 30));
            Console.Read();
        }