Design Patterns 4 : Strategy
来源:互联网 发布:maomiav域名紧急升级 编辑:程序博客网 时间:2024/06/03 16:31
You got something to do and based on the contexts you need to do it in different ways.
You could mix the contexts with the things together, like a switch cases.
Or you could define a interface and implement the interface according to different conditions, and choose which implementation to use based on the context.
Strategy is way to push down the variation in the hierarchy, instead of changing yourself (through inheritance), make someone else polymorphic and contain it.
- Design Patterns 4 : Strategy
- Design Patterns III : Strategy
- Design Patterns---- Strategy 模式
- Head first design patterns c++实现, strategy
- Design Patterns学习笔记:Strategy策略模式
- Design Patterns学习笔记21:Strategy
- Java Design Patterns--Strategy Pattern --策略模式
- Design Pattern - Behavioral Patterns - Strategy Pattern
- 大卫的Design Patterns学习笔记21:Strategy
- AS3 Strategy策略模式翻译(Design Patterns in ActionScript)
- Head First Design Patterns 阅读笔记之一: Strategy Pattern
- MapReduce Design Patterns-chapter 4
- Design Patterns
- Design Patterns
- Design Patterns
- design patterns:
- Design Patterns
- Design Patterns
- 近亲树头文件C++
- 【科技资讯】澳机器人破解魔方仅用10.18秒破纪录
- matlab取整操作
- 近亲树实现文件C++
- 基于Chrome开源提取的界面开发框架 三(.1.5)
- Design Patterns 4 : Strategy
- JS 实现客户端定时重复 提交
- 算法导论14.3-6
- 关联容器的表面
- iphone 如何显示菜单并且实现copy操作
- vmware中ubuntu上网的问题
- 区间树头文件C++
- 区间树实现文件C++
- 模拟电路板布局头文件C++