装饰者模式可以动态地给一个对象增加其他职责。
The Decorator Pattern attaches additional responsibilities to an object dynamically.
就扩展对象功能来说,装饰者模式比生成子类更为灵活。
Decorators provide a flexible alternative to subclassing for extending functionality.
装饰者模式动态地将职责附加到对象上。若要扩张功能,装饰者提供了比继承更有弹性的替代方案。
Attach additional responsibilities to an object dynamically keeping the same interface. Decorators provide a flexible alternative to subclassing for extending functionality.
装饰器模式动态地将责任附加到对象上。若要扩展功能,装饰者提供了比继承更有弹性的替代方案。
Decorator Pattern Attaches additional responsibilities to an object dynamically. Decorators provide a flexible alternative to sub classing for extending functionality.
装饰器模式动态地将责任附加到对象上。若要扩展功能,装饰者提供了比继承更有弹性的替代方案。
Decorator Pattern Attaches additional responsibilities to an object dynamically. Decorators provide a flexible alternative to sub classing for extending functionality.
应用推荐