示例#1
0
文件: Program.cs 项目: dym0080/DHMS
        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
文件: Pursuit.cs 项目: dym0080/DHMS
 public Pursuit(SchoolGirl m)
 {
     this.mm = m;
 }
示例#3
0
 public Poxy(SchoolGirl m)
 {
     this.mm = m;
 }