Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Person xc = new Person("小菜");


            Console.WriteLine("\n第一种装扮:");

            Finery dtx = new TShirts();
            Finery kk  = new BigTrouser();
            Finery pqx = new Sneakers();

            dtx.Show();
            kk.Show();
            pqx.Show();
            xc.Show();

            Console.WriteLine("\n第二种装扮:");

            Finery xz = new Suit();
            Finery ld = new Tie();
            Finery px = new LeatherShoes();

            xz.Show();
            ld.Show();
            px.Show();
            xc.Show();

            Console.Read();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            Person xc = new Person("小菜");


            Console.WriteLine("\n第一种装扮:");

            Finery dtx = new TShirts();
            Finery kk = new BigTrouser();
            Finery pqx = new Sneakers();

            dtx.Show();
            kk.Show();
            pqx.Show();
            xc.Show();

            Console.WriteLine("\n第二种装扮:");

            Finery xz = new Suit();
            Finery ld = new Tie();
            Finery px = new LeatherShoes();

            xz.Show();
            ld.Show();
            px.Show();
            xc.Show();

            Console.Read();
        }
Exemplo n.º 3
0
 public override void Show()
 {
     if (component != null)
     {
         component.Show();
     }
 }
Exemplo n.º 4
0
 public override void Show()
 {
     if (mPerson != null)
     {
         mPerson.Show();
     }
 }
Exemplo n.º 5
0
        static void Main(string[] args)
        {
            Person xc = new Person("小菜");

            Console.WriteLine("\n第一种装扮:");

            xc.WearTShirts();
            xc.WearBigTrouser();
            xc.WearSneakers();
            xc.Show();

            Console.WriteLine("\n第二种装扮:");

            xc.WearSuit();
            xc.WearTie();
            xc.WearLeatherShoes();
            xc.Show();

            Console.Read();
        }
Exemplo n.º 6
0
        static void Main(string[] args)
        {
            Person person = new Person("陈远");

            Console.WriteLine("\n 第一种装扮:");
            TShirts    shirts     = new TShirts();
            BigTrouser bigTrouser = new BigTrouser();
            Sneakers   sneakers   = new Sneakers();

            shirts.Show();
            bigTrouser.Show();
            sneakers.Show();
            person.Show();
            Console.ReadLine();
        }