package design;

import com.design.persuer.Girl;
import com.design.persuer.PersuerProxy;
import com.design.persuer.PersuerBoy;

/**
 * Description:代理模式测试类 女孩儿不知道追求者的名字,只知道代理者的名字,但代理者帮忙送的花和熊都是追求者送的
 * All Rights Reserved.
 * @version 1.0  2017年11月21日 下午6:17:16  by Nina
 */
public class Persuers {
    public static void main(String[] args) {
        PersuerBoy persuer = new PersuerBoy();
        persuer.setGirl(new Girl("diandian2u"));
        
        PersuerProxy proxy = new PersuerProxy("李四");
        proxy.setPersuer(persuer);
        
        proxy.sendBear();
        proxy.sendFlower();
    }
}
最近下载更多
千千千千千千  LV1 2020年6月13日
掉渣哥  LV8 2020年4月22日
13072368302  LV8 2019年12月27日
tgx521  LV6 2019年9月17日
猴哥猴哥  LV12 2019年6月5日
asdasfdfsd  LV3 2018年1月4日
唐老鸭  LV26 2017年11月24日
最代码官方  LV167 2017年11月21日
最近浏览更多
暂无贡献等级
总有人间一两风  LV8 2022年12月1日
 LV10 2021年6月12日
lris_luanling  LV11 2021年5月27日
1768669274 2021年4月22日
暂无贡献等级
hongxinmiao  LV7 2021年3月29日
2521436308  LV10 2020年12月23日
Alen001  LV4 2020年12月5日
poilkjmnb 2020年10月22日
暂无贡献等级
nibin576  LV6 2020年6月24日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友