Example #1
0
        static void Main(string[] args)
        {//webservice的參考也是代理模式
            SchoolGril yvonne = new SchoolGril();

            yvonne.Name = "Yvonne";
            Proxy kuan = new Proxy(yvonne);

            kuan.GiveChcoclate();
            kuan.GiveDools();
            kuan.GiveFlowers();
            Console.ReadKey();
        }
Example #2
0
 public Pursuit(SchoolGril girl)
 {
     this.girl = girl;
 }
Example #3
0
 public Proxy(SchoolGril girl)
 {
     gg = new Pursuit(girl);
 }