示例#1
0
        static void Main(string[] args)
        {

            Child child = new Child();
            Console.WriteLine(child.IdToString());
            Console.WriteLine(child.IdToString());
            Console.WriteLine();
            ChildChild childChild = new ChildChild();
            Console.WriteLine(childChild.IdToString());
            Console.WriteLine(childChild.IdToString());
            Console.ReadKey();
        }
示例#2
0
        static void Main(string[] args)
        {
            Child child = new Child();

            Console.WriteLine(child.IdToString());
            Console.WriteLine(child.IdToString());
            Console.WriteLine();
            ChildChild childChild = new ChildChild();

            Console.WriteLine(childChild.IdToString());
            Console.WriteLine(childChild.IdToString());
            Console.ReadKey();
        }