go top

装饰者模式

网络释义

  Decorator Pattern

装饰者模式(Decorator Pattern):动态地将责任附加到对象上.若要扩展功能,装饰者提供了比继承更有弹性的替代方案

基于718个网页-相关网页

  Decorator

装饰者模式(Decorator):包装一个对象,以提供新的行为。

基于636个网页-相关网页

  Decorate

至少,Connection 必须得封装,Wrapper, 也就是设计模式 - 装饰者模式(Decorate ) 这样可以解决close之类的问题

基于44个网页-相关网页

短语

设计模式之装饰者模式 Decorator Pattern

有道翻译

装饰者模式

Decorator pattern

以上为机器翻译结果,长、整句建议使用 人工翻译

双语例句

  • 装饰者模式可以动态地一个对象增加其他职责

    The Decorator Pattern attaches additional responsibilities to an object dynamically.

    youdao

  • 扩展对象功能来说,装饰模式比生成子类更为灵活

    Decorators provide a flexible alternative to subclassing for extending functionality.

    youdao

  • 装饰者模式动态地职责附加对象上。若扩张功能装饰提供继承更有弹性替代方案

    Attach additional responsibilities to an object dynamically keeping the same interface. Decorators provide a flexible alternative to subclassing for extending functionality.

    youdao

更多双语例句
$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定