摘要: UML:Component:定义一个对象接口,可以给这些对象动态的添加职责ContreteComponent:定义了一个具体的对象,也可以给这个对象添加一些职责Decorator:装饰抽象类,继承了Component,从外类来扩展Component类的功能,但对于Component来说,是无需知道Decrator的存在的ContreteDecoratorA和ContreteDecoratorB都是... 阅读全文