随笔分类 -  设计模式

摘要:桥接模式 翻译:https://springframework.guru/gang-of-four-design-patterns/visitor-pattern/ 定义: “Represent an operation to be performed on the elements of an o 阅读全文
posted @ 2020-09-18 14:45 adfas 阅读(630) 评论(0) 推荐(0)
摘要:描述 责任链模式,Chain of responsibility,是GoF中的behavior pattern行为模式中的一种,在所有的行为模式中,都设计的准则为:使用对象的组合而不是对象的继承。责任链模式所描述的是:与其从已有的类中继承新的类,不如让你的类指向一个你要使用的已经存在的类。该模式用于 阅读全文
posted @ 2020-09-15 13:38 adfas 阅读(946) 评论(0) 推荐(0)