static void Main(string[] args) { SchoolGirl schoolGirl = new SchoolGirl(); schoolGirl.Name = "girl"; Proxy proxy = new Proxy(schoolGirl); proxy.GiveChocolate(); proxy.GiveDolles(); proxy.GiveFlowers(); Console.ReadKey(); }
static void Main(string[] args) { SchoolGirl jiaojiao = new SchoolGirl(); jiaojiao.Name = "杨阳"; Proxy daili = new Proxy(jiaojiao); daili.GiveDolls(); daili.GiveChocolate(); daili.GiveFlowers(); }
static void Main(string[] args) { //Proxy proxy = new Proxy(); //proxy.Request(); //Console.Read(); SchoolGirl along = new SchoolGirl(); along.Name = "阿龍"; Proxy daili = new Proxy(along); daili.GiveDolls(); daili.GiveFlowers(); daili.GiveChocolate(); Console.Read(); }
public Proxy(SchoolGirl gril) { this._pursuit = new Pursuit(gril); }
public Proxy(SchoolGirl schoolGirl) { pursuit = new Pursuit(schoolGirl); }
public Pursuit(SchoolGirl schoolGirl) { this._schoolGirl = schoolGirl; }
public Proxy(SchoolGirl mm) { gg = new Pursuit(mm); }
public Pursuit(SchoolGirl mm) { this.mm = mm; }