private static void NewMethod() { Girl leng = new Girl { Name = "kat" }; Pursuit yi = new Pursuit(leng); yi.GiveChocolate(); yi.GiveDolls(); yi.GiveFlowers(); Console.Read(); }
static void Main(string[] args) { // NewMethod(); //NewMethod1(); Girl girl = new Girl { Name = "leng" }; Proxy proxy = new Proxy(girl); proxy.GiveDolls(); proxy.GiveFlowers(); proxy.GiveChocolate(); Console.Read(); }
public Pursuit(Girl mm) { _mm = mm; }