go top

Decorator pattern

  • 修饰模式(修饰模式是一种动态添加类行为的设计模式,比生成子类更灵活,可给对象添加功能)

英英释义

Decorator pattern

  • abstract: In object-oriented programming, the decorator pattern (also known as Wrapper, an alternative naming shared with the Adapter pattern) is a design pattern that allows behavior to be added to an individual object, either statically or dynamically, without affecting the behavior of other objects from the same class.

以上来源于: WordNet

双语例句

  • This is a classic GoF decorator pattern design pattern.

    典型的GoF装饰模式设计模式。

    youdao

  • Figure 4 shows a class diagram for the decorator pattern.

    4显示装饰器模式

    youdao

  • The decorator pattern is used by the DelegatingMessageHandler class shown in Listing 7.

    清单7中的DelegatingMessage handler使用decorator模式

    youdao

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

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

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