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 阅读全文
posted @ 2022-10-06 15:10 内心澎湃的水晶侠 阅读(109) 评论(0) 推荐(0) 编辑
摘要:中介者模式 概念 Mediator is a behavioral design pattern that lets you reduce chaotic dependencies between objects. The pattern restricts direct communication 阅读全文
posted @ 2022-10-06 14:36 内心澎湃的水晶侠 阅读(35) 评论(0) 推荐(0) 编辑
摘要:迭代器模式 概念 Iterator is a behavioral design pattern that lets you traverse elements of a collection without exposing its underlying representation (list, 阅读全文
posted @ 2022-10-06 14:01 内心澎湃的水晶侠 阅读(36) 评论(0) 推荐(0) 编辑
摘要:责任链模式 概念 Chain of Responsibility is a behavioral design pattern that lets you pass requests along a chain of handlers. Upon receiving a request, each 阅读全文
posted @ 2022-10-06 11:33 内心澎湃的水晶侠 阅读(50) 评论(0) 推荐(0) 编辑
摘要:命令模式 别名 Action、Transaction、Command 概念 Command is a behavioral design pattern that turns a request into a stand-alone object that contains all informat 阅读全文
posted @ 2022-10-06 10:58 内心澎湃的水晶侠 阅读(38) 评论(0) 推荐(0) 编辑
摘要:本文用简洁的方法,总结常用的设计模式 设计模式主要分成三大类,每一类都有一些具体模式,总结如下 创建型模式 抽象工厂模式 生成器模式 原型模式 单例模式 结构型模式 适配器模式 桥接模式 组合模式 装饰模式 外观模式 享元模式 代理模式 行为模式 抽象工厂模式 Factory Method is a 阅读全文
posted @ 2022-10-01 19:50 内心澎湃的水晶侠 阅读(576) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示