Daily Archives: 2024-09-18

设计模式-策略模式

1、概述 策略模式(strategy pattern)的原始定义是:定义一系列算 … Continue reading

More Galleries | Leave a comment

设计模式-状态模式

1、概述 状态模式是一种行为设计模式,它允许对象在其内部状态改变时改变其行为。这 … Continue reading

More Galleries | Leave a comment

设计模式-观察者模式

1、概述 观察者模式,也称发布订阅模式,是一种行为型设计模式,它定义了一种一对多 … Continue reading

More Galleries | Leave a comment

设计模式-命令模式

1、概述 命令模式(Command Pattern)是一种行为设计模式,它将请求 … Continue reading

More Galleries | Leave a comment

设计模式-责任链模式

1、概述 职责链模式(Chain Of Responsibility) 是一种行 … Continue reading

More Galleries | Leave a comment

设计模式-代理模式

1、概述 代理模式(Proxy Pattern)属于结构型设计模式,其核心思想是 … Continue reading

More Galleries | Leave a comment