搜索资源列表
DecoratorModel
- 装饰者模式需要把所需的功能按照正确的顺序串联起来进行控制,动态的给一个对象添加一些额外的职责。这里用C++演示装饰者模式。-Decorator need the functionality required in series in the correct order to control and to add some additional responsibilities to an object dynamically. The demo Decorator here C++.
Taxi_price
- 这是一个c#小代码,是实现装饰者模式的例子,计算计程车的费用,分三种情况,多种组合方式。-This is a small c# code is an example of realization of the Decorator Pattern, costing taxi, two cases, a variety of combinations.