Distinction Between Strategy and Decorator
摘要:
首先看Strategy和Decorator在GoF的《Design Patterns》的intentDecorator(1)intent:Attach additional responsibilities to an object dynamically.Decorators provide a flexible alternative to subclassing for extending functionality.(2)UML Diagram:Strategy(1)intentDefine a family of algorithms,encapsulate each one, an 阅读全文
posted @ 2010-12-14 02:28 CHYGO 阅读(328) 评论(0) 推荐(0)
浙公网安备 33010602011771号