Skip to content

Latest commit

 

History

History
11 lines (6 loc) · 292 Bytes

File metadata and controls

11 lines (6 loc) · 292 Bytes

装饰模式

定义

装饰模式,动态地给一个对象添加一些额外的职责,就增加功能来说,装饰模式比生成子类更为灵活。

代码

DecoratorClient