Design Patterns - Decorator Pattern

2008年06月30日 22:20 • 查看 20 次 • 打印本文

Following up on the Observer/Event Pattern, it’s time for the third pattern, the Decorator Pattern.

The definition: “Attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality.“

查看原文 »

评论

发表评论