01 2018 档案

摘要:一、装饰模式的类图如下 在装饰模式中的角色有: ● 抽象构件(Component)角色:就是需要装饰者的基类 ● 具体构件(ConcreteComponent)角色:具体需要装饰的实例类 ● 装饰(Decorator)角色:装饰物/装饰物 的基类 ● 具体装饰(ConcreteDecorator)角 阅读全文
posted @ 2018-01-03 00:42 Actexpler 阅读(199) 评论(0) 推荐(0) 编辑