装饰模式指的是在不必改变原类文件和使用继承的情况下,动态地扩展一个对象的功能。它是通过创建一个包装对象,也就是装饰来包裹真实的对象。
...装饰模式(Decorator Pattern):动态地给一个对象增加一些额外的职责,就增加对象功能来说,装饰模式比生成子类实现更为灵活。装饰模式是一种对象结构型模式。
基于1434个网页-相关网页
... 支持珊瑚虫,停用QQ 原型模式(Prototype Pattern) 装饰模式(Decorator/Wrapper Pattern) ...
基于2个网页-相关网页
装饰者模式 Decorator Pattern ; Decorator ; Decorate
装饰器模式 Decorator ; Decorator Pattern
设计模式之装饰者模式 Decorator Pattern
装饰工厂化模式 industrialized mode of construction
这是典型的GoF装饰模式设计模式。
该类实现了包装或装饰模式。
一般的“装饰模式”是一种设计模式,允许动态地向现有组件添加新的行为。
The general "decorator pattern" is a design pattern that allows adding new behavior to an existing component dynamically.
应用推荐