随笔分类 -  设计模式及应用

摘要:定义 在 GoF 的《设计模式》一书中,它是这样定义的: Define a family of algorithms, encapsulate each one, and make them interchangeable. Strategy lets the algorithm vary inde 阅读全文
posted @ 2020-05-21 17:24 walterlee 阅读(266) 评论(0) 推荐(1)
摘要:定义 模板模式在 GoF 的《设计模式》一书中,是这么定义的: Define the skeleton of an algorithm in an operation, deferring some steps to subclasses. Template Method lets subclass 阅读全文
posted @ 2020-05-21 16:34 walterlee 阅读(123) 评论(0) 推荐(0)
摘要:一、概念 在 GoF 的《设计模式》中,它的定义如下: Define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and 阅读全文
posted @ 2020-05-21 15:32 walterlee 阅读(875) 评论(0) 推荐(2)