摘要: 设计模式——装饰模式 最近在折腾java里的设计模式,在此把学习到的一些收获和一些源码都分享给大家。 装饰模式 : interface (接口): Person 实现接口类: Man,Decorator . 抽象类: Decorator 子类: ManDecoratorA ,ManDecorator 阅读全文
posted @ 2016-05-06 20:47 PengWenHao 阅读(234) 评论(0) 推荐(0) 编辑