예제 #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 Test(BadParent t)
 {
     Console.WriteLine(t.Divide(5, 2));
 }