随笔分类 - GoF-Design Patterns
摘要:1.The Strategy Pattern defines a family of algorithms, encapsulates each one, and makes them interchangeable. Strategy lets the algorithm vary independently from clients that use it.----Head first design patterns策略模式定义了一族算法,并将每一个都进行封装使他们变得通用。策略允许这些算法独立于使用他们的客户端自由变化。2.The Observer Patter defines a on
阅读全文