摘要: 设计模式 - 行为型模式(Behavioral Patterns) 行为型设计模式特别关注对象之间的通信。 责任链模式(Chain of Responsibility Pattern) 命令模式(Command Pattern) 解释器模式(Interpreter Pattern) 迭代器模式(It 阅读全文
posted @ 2020-02-17 09:16 double蠢 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 设计模式 - 结构型模式(Structural Patterns) 结构性设计模式关注类和对象的组合。继承的概念被用来组合接口和定义组合对象获得新功能的方式。 适配器模式(Adapter Pattern) 桥接模式(Bridge Pattern) 过滤器模式(Filter、Criteria Patt 阅读全文
posted @ 2020-02-17 09:14 double蠢 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 设计模式 - 创建型模式(Creational Patterns) 创建型模式提供了一种在创建对象的同时隐藏创建逻辑的方式,而不是使用 new 运算符直接实例化对象。这使得程序在判断针对某个给定实例需要创建哪些对象时更加灵活。包括: 工厂模式(Factory Pattern) 抽象工厂模式(Abst 阅读全文
posted @ 2020-02-17 09:08 double蠢 阅读(199) 评论(0) 推荐(0) 编辑