摘要:
1、定义 1.1标准定义 策略模式(StrategyPattern)是一种比较简单的模式,也叫做政策模式(PolicyPattern)。其定义如下: Define a family of algorithms,encapsulate each one,and make them interchang 阅读全文
posted @ 2017-07-28 22:50
Memset
阅读(375)
评论(0)
推荐(0)
摘要:
1、定义 1.1 标准定义 装饰模式(Decorator Pattern)是一种比较常见的模式,其定义如下: Attach additional responsibilities to an object dynamically keeping the same interface.Decorato 阅读全文
posted @ 2017-07-28 22:27
Memset
阅读(221)
评论(0)
推荐(0)
摘要:
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 阅读全文
posted @ 2017-07-28 00:16
Memset
阅读(382)
评论(0)
推荐(0)

浙公网安备 33010602011771号