Example #1
0
        static void Main(string[] args)
        {
            /*  P7.2
             * SchoolGirl jiaojiao = new SchoolGirl();
             * jiaojiao.Name = "李娇娇";
             *
             * Pursuit zhuojiayi = new Pursuit(jiaojiao);
             *
             * zhuojiayi.GiveFlows();
             * zhuojiayi.GiveDolls();
             * zhuojiayi.GiveChocolate();
             *
             * Console.ReadLine();
             */

            //P7.2
            SchoolGirl jiaojiao = new SchoolGirl();

            jiaojiao.Name = "李娇娇";

            Poxy daili = new Poxy(jiaojiao);

            daili.GiveFlows();
            daili.GiveDolls();
            daili.GiveChocolate();

            Console.ReadLine();
        }
Example #2
0
 public Pursuit(SchoolGirl m)
 {
     this.mm = m;
 }
Example #3
0
 public Poxy(SchoolGirl m)
 {
     this.mm = m;
 }