以下是学习过程中查询的资料,别人总结的资料,比较容易理解(站在各位巨人的肩膀上,望博主勿究)
面向对象的设计原则
单一职责原则
每个类只承担一个职责。
里氏替换原则
子类可以扩展父类的功能,但是不能改变父类原有的功能。
依赖倒置原则
依赖于接口编程,而不是依赖于实现细节编程。
接口隔离原则
无需被迫依赖于他用不到的方法。
迪米特法则
调用者对目标对象的了解最少,而且不和陌生人交谈。
开闭原则
应该对扩展开放,对修改关闭。
创建型---管理对象实例的创建过程
工厂方法与抽象工厂模式(已整理) https://blog.csdn.net/qq_18975791/article/details/83176658
建造者模式 https://blog.csdn.net/qq_18975791/article/details/83176880
原型模式 (已整理)https://blog.csdn.net/qq_18975791/article/details/83176965
单例模式(已整理) https://blog.csdn.net/qq_18975791/article/details/83177230
结构型---组织灵活的对象体系
适配器模式(已整理) https://blog.csdn.net/qq_18975791/article/details/83177358
桥接模式(已整理,实际中暂时没有遇到) https://blog.csdn.net/qq_18975791/article/details/80752946
组合模式 https://blog.csdn.net/qq_18975791/article/details/83214834
外观模式 https://blog.csdn.net/qq_18975791/article/details/83214878
装饰者模式 https://blog.csdn.net/qq_18975791/article/details/80804793 https://blog.csdn.net/qq_18975791/article/details/80134471
享元模式 https://blog.csdn.net/qq_18975791/article/details/83268268
代理模式 https://blog.csdn.net/qq_18975791/article/details/83177815
行为型---算法、控制流的对象化操作
责任链模式 https://blog.csdn.net/qq_18975791/article/details/83268323
命令模式 https://blog.csdn.net/qq_18975791/article/details/83268412
解释器模式 https://blog.csdn.net/qq_18975791/article/details/83268615
迭代模式 https://blog.csdn.net/qq_18975791/article/details/83268674
中介者模式 https://blog.csdn.net/qq_18975791/article/details/83268731
备忘录模式https://blog.csdn.net/qq_18975791/article/details/83268906
观察者模式 https://blog.csdn.net/qq_18975791/article/details/83268935
状态模式 https://blog.csdn.net/qq_18975791/article/details/83269005
策略模式 https://blog.csdn.net/qq_18975791/article/details/83269069
模板方法模式 https://blog.csdn.net/qq_18975791/article/details/83269265
访问者模式 https://blog.csdn.net/qq_18975791/article/details/83269345