示例#1
0
        public void RunProgram()
        {
            Base test = new Child();
            Console.WriteLine(test.Main());

            Console.WriteLine();
            Base test2 = new AnotherChild();
            Console.WriteLine(test2.Main());
        }
示例#2
0
        public void RunProgram()
        {
            Base test = new Child();

            Console.WriteLine(test.Main());

            Console.WriteLine();
            Base test2 = new AnotherChild();

            Console.WriteLine(test2.Main());
        }