错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Decorator Pattern

  • Vaskaran Sarcar

摘要

Composition is a widely used alternative to inheritance in programming and often provides a better design payoff. This chapter discusses the Decorator pattern that relies on object composition. This pattern is also known as the Wrapper pattern.