Skip to content

liuhaha666/HeadFirstDesignMode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HeadFirstDesignMode

本代码是<<Head First 设计模式>>里的所有代码。

1.第一章 多用组合,少用继承

2.第二章 观察者模式

3.第三章 装饰器

4.第四章 工厂模式

5.第五章 单例模式

6.第六章 封装

7.第七章 适配器模式和外观模式

8.第八章 模板方法模式和好莱坞原则

9.第九章 迭代器与组合模式

组合模式允许将对象组合成树形结构来表现“整体/部分”层次结构。组合能让客户以一致的方式处理个别对象以及对象组合。

10.第十章,代理模式

代码顺序

design_ten_proxy_rumen_zero对应代码proxy--参考https://www.cnblogs.com/adamjwh/p/9102037.html

design_ten_proxy_rumen_one对应代码GamePlayerProxy--参考https://www.cnblogs.com/adamjwh/p/9102037.html

design_ten_proxy_one对应代码MatchMakingTestDrive--参考书中代码

design_ten_rumen_dynamicproxy对应代码dynamicproxy--参考https://www.cnblogs.com/adamjwh/p/10907526.html

design_ten_rumen_staticproxy对应代码GamePlayer--参考https://www.cnblogs.com/adamjwh/p/10907526.html

design_ten_rumen_reflection_one对应代码反射example one --参考https://www.cnblogs.com/adamjwh/p/9683705.html

design_ten_rumen_reflection_two对应代码反射example two --参考https://www.cnblogs.com/adamjwh/p/9683705.html

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages