定义了算法族,分别封装起来,让它们可以互相替换,让算法的变化独立于使用算法的客户。
《Head First 设计模式》ch.1 策略(Strategy)模式
原文:http://www.cnblogs.com/maozhige/p/3958863.html