示例#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));
 }