随笔分类 - 设计模式及应用
摘要:定义 在 GoF 的《设计模式》一书中,它是这样定义的: Define a family of algorithms, encapsulate each one, and make them interchangeable. Strategy lets the algorithm vary inde
阅读全文
摘要:定义 模板模式在 GoF 的《设计模式》一书中,是这么定义的: Define the skeleton of an algorithm in an operation, deferring some steps to subclasses. Template Method lets subclass
阅读全文
摘要:一、概念 在 GoF 的《设计模式》中,它的定义如下: Define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and
阅读全文

浙公网安备 33010602011771号