Beispiel #1
0
        public InheritanceAndPolymorphismV2()
        {
            ClassB y = new ClassB();
            ClassA x = new ClassA();
            ClassB z = new ClassA();

            y.AAA(); y.BBB(); y.CCC();

            x.AAA(); x.BBB(); x.CCC();

            z.AAA(); z.BBB(); z.CCC();
            Console.ReadKey();
        }