锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久99在线观看,欧美电影在线播放,国产精品久久久一区麻豆最新章节http://m.shnenglu.com/qywyh/category/5609.html璞?>blogzh-cnWed, 21 May 2008 06:44:29 GMTWed, 21 May 2008 06:44:29 GMT60Design Patterns (notes)http://m.shnenglu.com/qywyh/archive/2007/11/22/37124.html璞?/dc:creator>璞?/author>Thu, 22 Nov 2007 04:26:00 GMThttp://m.shnenglu.com/qywyh/archive/2007/11/22/37124.htmlhttp://m.shnenglu.com/qywyh/comments/37124.htmlhttp://m.shnenglu.com/qywyh/archive/2007/11/22/37124.html#Feedback0http://m.shnenglu.com/qywyh/comments/commentRss/37124.htmlhttp://m.shnenglu.com/qywyh/services/trackbacks/37124.htmlThe Strategy Pattern Defines a family of algorithms, encapsulates each one, and makes them interchangeable. Strategy lets the algorithm vary independently from clients that use it.
Observer Pattern Defines a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically.
Decorator Pattern Attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality.
Factory Pattern Abstract Factory Provide an interface for creating families of related or dependent objects without specifying their concrete classes. Factory Method Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Pattern lets a class defer instantiation to the subclasses.
Singleton Ensure a class only has one instance and provide a global point of access to it.
The Command Pattern encapsulates a request as an object, thereby letting you parameterize other objects with different requests, queue or log requests, and support undoable operations.
The adapter pattern Adapter Converts the interface of a class into aniother interface clients expect. Lets classes work together that couldnt otherwise because of incompatible interfaces. Facade Provides a unified interface to a set of interfaces in a subsystem. Facade defines a higher-level interface that makes the subsystem easier to use.