decorator 模式

两句话:1.被装饰的窗户仍然是窗户  2.被装饰的窗户除了装饰还有窗户

[image from http://en.wikipedia.org/wiki/Decorator_pattern]

posted @ 2011-12-23 13:48  justin_s  阅读(132)  评论(0编辑  收藏  举报