摘要:
1、定义 1.1标准定义 策略模式(StrategyPattern)是一种比较简单的模式,也叫做政策模式(PolicyPattern)。其定义如下: Define a family of algorithms,encapsulate each one,and make them interchang 阅读全文
摘要:
1、定义 1.1 标准定义 装饰模式(Decorator Pattern)是一种比较常见的模式,其定义如下: Attach additional responsibilities to an object dynamically keeping the same interface.Decorato 阅读全文
摘要:
1、定义 1.1 标准定义 Avoid coupling the sender of a request to its receiver by giving more than one object a chance to handle the request.Chain the receiving 阅读全文