static void Main(string[] args) { var girl = new Girl("Judy"); Proxy proxy = new Proxy(girl); proxy.GiveDolls(); proxy.GiveFlowers(); proxy.GiveChocolate(); }
static void Main(string[] args) { Girl jiaojiao = new Girl(); jiaojiao.Name = "李娇娇"; Proxy dali = new Proxy(jiaojiao, "甲"); dali.Name = "戴利"; dali.PursuitName = "甲"; dali.GiveChocolate(); dali.GiveDolls(); dali.GiveFlowers(); Console.Read(); }
public Proxy(Girl mm, string PursuitName) { gg = new Pursuit(mm, PursuitName); this.PursuitName = PursuitName; }
public Pursuit(Girl mm, string name) { this.mm = mm; this.Name = name; }