JasonChang

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

The Decorator Pattern attaches additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality. 

 

implementation

 

posted on 2013-12-02 12:21  JasonChang  阅读(143)  评论(0)    收藏  举报