10 2022 档案
摘要:备忘录模式 概念 Memento is a behavioral design pattern that lets you save and restore the previous state of an object without revealing the details of its im
阅读全文
摘要:中介者模式 概念 Mediator is a behavioral design pattern that lets you reduce chaotic dependencies between objects. The pattern restricts direct communication
阅读全文
摘要:迭代器模式 概念 Iterator is a behavioral design pattern that lets you traverse elements of a collection without exposing its underlying representation (list,
阅读全文
摘要:责任链模式 概念 Chain of Responsibility is a behavioral design pattern that lets you pass requests along a chain of handlers. Upon receiving a request, each
阅读全文
摘要:命令模式 别名 Action、Transaction、Command 概念 Command is a behavioral design pattern that turns a request into a stand-alone object that contains all informat
阅读全文
摘要:本文用简洁的方法,总结常用的设计模式 设计模式主要分成三大类,每一类都有一些具体模式,总结如下 创建型模式 抽象工厂模式 生成器模式 原型模式 单例模式 结构型模式 适配器模式 桥接模式 组合模式 装饰模式 外观模式 享元模式 代理模式 行为模式 抽象工厂模式 Factory Method is a
阅读全文