JasonChang

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

2013年12月2日

摘要: The Singleton Patternensures a class has only one instance, and provide a global point of access to it. 阅读全文
posted @ 2013-12-02 16:19 JasonChang 阅读(125) 评论(0) 推荐(0) 编辑

摘要: The Abstract Factory Pattern provides an interface for creating families of related or dependent objects without specifying their concrete classes.implementation 阅读全文
posted @ 2013-12-02 15:32 JasonChang 阅读(116) 评论(0) 推荐(0) 编辑

摘要: The Factory Method Pattern defines an interface for creating an object, but lets subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses.implementation 阅读全文
posted @ 2013-12-02 13:09 JasonChang 阅读(217) 评论(0) 推荐(0) 编辑

摘要: The Decorator Pattern attaches additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extendingfunctionality.implementation 阅读全文
posted @ 2013-12-02 12:21 JasonChang 阅读(132) 评论(0) 推荐(0) 编辑

摘要: The Observer Pattern defines a one-to-many dependency between objects so that when one object changes state, all of its dependents are notified and updated automatically. Observer Pattern = Publisher + Subcribersimplemenation: 阅读全文
posted @ 2013-12-02 08:37 JasonChang 阅读(143) 评论(0) 推荐(0) 编辑