设计模式知识点总结

文章目录

  • [1 设计模式](#1 设计模式)
    • [1.1 创建型(Creational)](#1.1 创建型(Creational))
      • [1.1.1 【类】工厂方法模式(Factory Method)](#1.1.1 【类】工厂方法模式(Factory Method))
      • [1.1.2 抽象工厂模式(Abstract Factory)](#1.1.2 抽象工厂模式(Abstract Factory))
      • [1.1.3 建造者模式(Builder)【2020】](#1.1.3 建造者模式(Builder)【2020】)
      • [1.1.4 原型模式(Prototype)](#1.1.4 原型模式(Prototype))
      • [1.1.5 单例模式(Singleton)](#1.1.5 单例模式(Singleton))
    • [1.2 结构型(Structural)](#1.2 结构型(Structural))
      • [1.2.1 【类】适配器模式(Adapter - Class)](#1.2.1 【类】适配器模式(Adapter - Class))
      • [1.2.2 适配器模式(Adapter - Object)【2022】](#1.2.2 适配器模式(Adapter - Object)【2022】)
      • [1.2.3 桥接模式(Bridge)](#1.2.3 桥接模式(Bridge))
      • [1.2.4 组合模式(Composite)](#1.2.4 组合模式(Composite))
      • [1.2.5 装饰模式(Decorator)](#1.2.5 装饰模式(Decorator))
      • [1.2.6 外观模式(Facade)](#1.2.6 外观模式(Facade))
      • [1.2.7 享元模式(Flyweight)](#1.2.7 享元模式(Flyweight))
      • [1.2.8 代理模式(Proxy)](#1.2.8 代理模式(Proxy))
    • [1.3 行为型(Behavioral)](#1.3 行为型(Behavioral))
      • [1.3.1 【类】解释器模式(Interpreter)](#1.3.1 【类】解释器模式(Interpreter))
      • [1.3.2 【类】模板方法模式(Template Method)](#1.3.2 【类】模板方法模式(Template Method))
      • [1.3.3 责任链模式(Chain of Responsibility)【2022】](#1.3.3 责任链模式(Chain of Responsibility)【2022】)
      • [1.3.4 命令模式(Command)【2021】](#1.3.4 命令模式(Command)【2021】)
      • [1.3.5 迭代器模式(Iterator)【对象】](#1.3.5 迭代器模式(Iterator)【对象】)
      • [1.3.6 中介者模式(Mediator)【2021】](#1.3.6 中介者模式(Mediator)【2021】)
      • [1.3.7 备忘录模式(Memento)【对象】](#1.3.7 备忘录模式(Memento)【对象】)
      • [1.3.8 观察者模式(Observer)【对象】](#1.3.8 观察者模式(Observer)【对象】)
      • [1.3.9 状态模式(State)【对象】](#1.3.9 状态模式(State)【对象】)
      • [1.3.10 策略模式(Strategy)【2021】](#1.3.10 策略模式(Strategy)【2021】)
      • [1.3.11 访问者模式(Visitor)【对象】](#1.3.11 访问者模式(Visitor)【对象】)

1 设计模式

1.1 创建型(Creational)

1.1.1 【类】工厂方法模式(Factory Method)

1.1.2 抽象工厂模式(Abstract Factory)

1.1.3 建造者模式(Builder)【2020】



1.1.4 原型模式(Prototype)

1.1.5 单例模式(Singleton)

1.2 结构型(Structural)

1.2.1 【类】适配器模式(Adapter - Class)

1.2.2 适配器模式(Adapter - Object)【2022】


1.2.3 桥接模式(Bridge)

1.2.4 组合模式(Composite)

1.2.5 装饰模式(Decorator)

1.2.6 外观模式(Facade)

1.2.7 享元模式(Flyweight)

1.2.8 代理模式(Proxy)

1.3 行为型(Behavioral)

1.3.1 【类】解释器模式(Interpreter)

1.3.2 【类】模板方法模式(Template Method)

1.3.3 责任链模式(Chain of Responsibility)【2022】


1.3.4 命令模式(Command)【2021】



1.3.5 迭代器模式(Iterator)【对象】

1.3.6 中介者模式(Mediator)【2021】


1.3.7 备忘录模式(Memento)【对象】

1.3.8 观察者模式(Observer)【对象】

1.3.9 状态模式(State)【对象】

1.3.10 策略模式(Strategy)【2021】



1.3.11 访问者模式(Visitor)【对象】

相关推荐
晚安code18 小时前
设计模式入门:吃透 SOLID 原则与迪米特法则,再学 5 个高频模式
后端·设计模式
染指11101 天前
135.Agent-多Agent框架-LangChain多智能体(SubAgents子代理)
数据库·人工智能·设计模式·langchain·agent·agents
路弥行至2 天前
【Head First 设计模式】第 2 章:观察者模式 —— 用现代 C++ 重新解读“交互对象的松耦合
c++·经验分享·笔记·观察者模式·设计模式·入门教程·headfirst
YYYing.2 天前
【设计模式系列 (九) 】装饰器模式
c++·后端·设计模式·装饰器模式·c/c++
沫璃染墨2 天前
《从零入门Linux系统篇(五十六):线程篇·九——生产者消费者模型:从条件变量到BlockingQueue实现》
linux·服务器·c++·驱动开发·设计模式·架构·系统架构
c萱3 天前
AI产品经理——01基础认知篇
设计模式·prompt·aigc·产品经理·ai编程·gitcode·ai-native
YYYing.3 天前
【设计模式系列 (八) 】组合模式
c++·后端·设计模式·组合模式·c/c++
geovindu4 天前
rust: Composite Pattern
开发语言·后端·设计模式·rust·组合模式
YYYing.4 天前
【设计模式系列 (七) 】桥接模式
c++·后端·设计模式·桥接模式
阿狗童鞋4 天前
设计模式实战指南
设计模式