stand on the shoulders of giants

Design Pattern 按图索骥

Creational Patterns

Abstract Factory  Creates an instance of several families of classes

abstract

Builder  Separates object construction from its representation

builder

Factory Method  Creates an instance of several derived classes

 

Prototype  A fully initialized instance to be copied or cloned

Singleton  A class of which only a single instance can exist


For detail, refer to
1. “重构----改善既有代码的设计.pdf”
2. http://www.cnblogs.com/Terrylee/archive/2008/06/13/cnblogs-book-design-pattern.html
3. http://www.dofactory.com/Patterns/Patterns.aspx
4. etc.

Adapter

image

posted @ 2010-06-01 15:51  DylanWind  阅读(182)  评论(0编辑  收藏  举报