设计模式学习目录

设计模式的定义

设计模式(Design Pattern)是一套被反复使用、多数人知晓的、经过分类编目的、代码设计经验的总结,使用设计模式是为了可重用代码、让代码更容易被他人理解并且保证代码可靠性。

UML类图基础知识:

UML类图介绍和元素信息

UML类图对应关系和对应代码

 

面向对象的七种设计原则:

1.开闭原则(Open-Closed Principle)

2.单一职责原则(Single Responsibility Principle)

3.里氏代换原则(Liskov Substitution Principle)

4.依赖倒转原则(Dependency Inversion Principle)

5.接口隔离原则(Interface Segregation Principle)

6.合成复用原则(Composite Reuse Principle)

7.迪米特法则(Law of Demeter)

 

设计模式表单:

类型模式名称学习难度使用频率

 

创建型

工厂方法模式(Factory Method Pattern)★★☆☆☆★★★★★
抽象工厂模式(Abstract Factory Pattern)★★★★☆★★★★★
建造者模式(Builder Pattern)★★★★☆★★☆☆☆
原型模式(Prototype Pattern)★★★☆☆★★★☆☆
单例模式(Singleton Pattern)★☆☆☆☆★★★★☆
行为型适配器模式(Adapter Pattern)★★☆☆☆★★★★☆
桥接模式(Bridge Pattern)★★★☆☆★★★☆☆
组合模式(Composite Pattern)★★★☆☆★★★★☆
装饰模式(Decorator Pattern)★★★☆☆★★★☆☆
外观模式(Facade Pattern)★☆☆☆☆★★★★★
享元模式(Flyweight Pattern)★★★★☆★☆☆☆☆
代理模式(Proxy Pattern)★★★☆☆★★★★☆
结构型职责链模式(Chain of Responsibility Pattern)★★★☆☆★★☆☆☆
命令模式(Command Pattern)★★★☆☆★★★★☆
解释器模式(Interpreter Pattern)★★★★★★☆☆☆☆
迭代器模式(Iterator Pattern)★★★☆☆★★★★★
中介者模式(Mediator Pattern)★★★☆☆★★☆☆☆
备忘录模式(Memento Pattern)★★☆☆☆★★☆☆☆
观察者模式(Observer Pattern)★★★☆☆★★★★★
状态模式(State Pattern)★★★☆☆★★★☆☆
策略模式(Strategy Pattern)★☆☆☆☆★★★★☆
模板方法模式(Template Method Pattern)★★☆☆☆★★★☆☆
访问者模式(Visitor Pattern)★★★★☆★☆☆☆☆

 

 

 

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值