2积分福利。23种设计模式(C++完整版),内有详细C++代码,程序员进阶好帮手。
0 引言..............................................................................................................................................2
0.1设计模式解析(总序).....................................................................................................2
0.2设计模式解析后记.............................................................................................................2
0.3 与作者联系........................................................................................................................5
1 创建型模式...................................................................................................................................5
1.1 Factory模式........................................................................................................................5
1.2 AbstactFactory模式..........................................................................................................11
1.3 Singleton模式...................................................................................................................19
1.4 Builder模式.......................................................................................................................22
1.5 Prototype模式...................................................................................................................29
2 结构型模式.................................................................................................................................33
2.1 Bridge模式........................................................................................................................33
2.2 Adapter模式......................................................................................................................39
2.3 Decorator模式...................................................................................................................47
2.4 Composite模式...............................................................................
2021-09-18 11:30:17
1.38MB
设计模式
1