一、内容介绍
1.Java设计模式内容介绍
——先看几个经典的面试题
![](https://i-blog.csdnimg.cn/blog_migrate/138bd2f128f315a92ab8f2e5258548ce.png)
![](https://i-blog.csdnimg.cn/blog_migrate/6e41d511d590820192f74be5604efb74.png)
![](https://i-blog.csdnimg.cn/blog_migrate/b923584cb152dcba62939e05c35e8f99.png)
![](https://i-blog.csdnimg.cn/blog_migrate/b863ab86eb56d8b1c9d06dc1667451d5.png)
![](https://i-blog.csdnimg.cn/blog_migrate/3fa86370cdfdb79c55a0d117f0aa9321.png)
![](https://i-blog.csdnimg.cn/blog_migrate/982a0026e4a05f4a5599e1505866577a.png)
——设计模式的重要性
![](https://i-blog.csdnimg.cn/blog_migrate/5ca6bc7040b4f6768e1c2e0903a721b1.png)
二、设计模式七大原则
1.设计模式的目的
2.设计模式七大原则
3.单一职责原则
4.接口隔离原则
5.依赖倒转原则
6.里氏替换原则
7.开闭原则
8.迪米特法则
9.合成复用原则
10.设计原则核心思想
三、UML类图
1.UML基本介绍
2.UML图
3.UML类图
4.类图—依赖关系(Dependence)
5.类图—泛化关系(generalization)
6.类图—实现关系(Implementation)
7.类图—关联关系(Association)
8.类图—聚合关系(Aggregation)