示例#1
0
        private static void RunPolymorphismExample()
        {
            PolymorphismBase PMB = new PolymorphismBase();

            PMB.PrintMessage("base class!");
            Polymorphism PM = new Polymorphism();

            PM.PrintMessage("overridden class!");
        }