设计模式
目录
Factory 模式........................................................................................................................................2
Abstract Factory 模式.........................................................................................................................5
Builder 模式.....................................................................................................................................11
Prototype 模式..................................................................................................................................16
Singleton 模式..................................................................................................................................20
Adapt 模式........................................................................................................................................23
Bridge 模式......................................................................................................................................26
Composite 模式................................................................................................................................30
Decorator 模式.................................................................................................................................35
Proxy 模式........................................................................................................................................39
FlyWeight 模式.................................................................................................................................42
TemplateMethod 模式.......................................................................................................................46
ChainOfResponsibility 模式............................................................................................................49
Command 模式................................................................................................................................52
Observer 模式...................................................................................................................................56
Strategy 模式....................................................................................................................................61
State 模式.........................................................................................................................................64
Iterator 模式.....................................................................................................................................67
Memento 模式..................................................................................................................................72
Visitor 模式......................................................................................................................................76
完结篇...............................................................................................................................................80