Design Pattern
共 1 篇文章
Strategy
以下内容学习自《Head First 设计模式》以及 Justin's Tech Blog ,由本人概括整理。 定义:<span style="color:red">The Strategy Pattern defines a family of algorithms,encapsulates each one,and makes them interchangeable. Strategy lets the algorithm vary independently from clients that use it.(策略模式定义了一系列的算法,并将每一个算法封装起来,而且使它们还可以相互替…
2011-05-01 01:46 · Design Pattern · 算法 · Blog · 设计模式