Exemple #1
0
        static void Main(string[] args)
        {
            SchoolGirl girl = new SchoolGirl();

            girl.Name = "李狗儿";
            Agency daili = new Agency(girl);

            daili.GiveChoolate();
            Console.Read();
        }
Exemple #2
0
 public Agency(SchoolGirl girl)
 {
     boy = new Pursuer(girl);
 }
Exemple #3
0
 public Pursuer(SchoolGirl Girl)
 {
     girl = Girl;
 }