예제 #1
0
        public static void Show()
        {
            Console.WriteLine("***************************");
            Poly.Test();

            {
                Chinese people = new Chinese();
                people.Traditional();
                Do(people);
            }
            {
                Hubei people = new Hubei();
                people.Traditional();
                Do(people);
            }
            {
                //People people = new People();
                //Do(people);
            }
            {
                Parent parent = new Parent();
                parent.PlusShow(3, 4);
                parent.MinusShow(4, 3);
            }
            {
                Parent parent = new Child();
                parent.PlusShow(3, 4);
                parent.MinusShow(4, 3);
            }
            {
                Child child = new Child();
                child.PlusShow(3, 4);
                child.MinusShow(4, 3);
            }
        }
예제 #2
0
 public static void Show()
 {
     {
         Poly.Test();
     }
 }