Пример #1
0
        static void Main(string[] args)
        {
            BadParent   a = new BadParent();
            BadChildren b = new BadChildren();

            GoodParent   c = new GoodParent();
            GoodChildren d = new GoodChildren();

            Test(a);
            Test(b);

            Test2(c);
            Test2(d);

            Console.ReadKey();
        }
Пример #2
0
 static void Test2(GoodParent t)
 {
     t.GiveMeMyBike(90);
     Console.WriteLine();
 }