Пример #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();
        }
Пример #2
0
 public Pursuit(SchoolGirl m)
 {
     this.mm = m;
 }
Пример #3
0
 public Poxy(SchoolGirl m)
 {
     this.mm = m;
 }