Decorator Pattern Attaches additional responsibilities to an object dynamically . Decorators provide a flexible alternative to sub classing for extending functionality .

 
  • 装饰器模式动态地将责任附加到对象上。若要扩展功能,装饰者提供了比继承更有弹性的替代方案。
今日热词
目录 附录 查词历史