The Strategy design pattern takes a little more work to implement than the Template Method pattern, but it is more flexible.
策略设计模式比模板方法模式花费了更多的工作去实现,但是它也更灵活。
An alternative to the Template Method is the Strategy design pattern, which factors the variant behavior into an interface.
模板方法模式的另一个选择是策略模式,它抽取了多变的行为到一个接口中。
The principle and idea of designing the arc template of wormwheel are discussed. The designing method and gist in the design and use of the template are explained.
论述了蜗轮圆弧样板的设计原理及设计思路,说明了样板设计方法以及设计和使用要点。
应用推荐