• The Template Method design pattern (GoF) addresses a common problem: we know the steps of an algorithm and the order in which they should be performed, but don't know how to perform all of the steps.

    模板方法设计模式(gof)强调了一个普遍问题我们知道算法一步并且知道他们执行顺序但是我们知道怎么样执行所有这些步骤

    youdao

  • The Strategy design pattern takes a little more work to implement than the Template Method pattern, but it is more flexible.

    策略设计模式模板方法模式花费更多工作实现但是灵活

    youdao

  • An alternative to the Template Method is the Strategy design pattern, which factors the variant behavior into an interface.

    模板方法模式个选择策略模式,抽取多变行为一个接口中。

    youdao

  • An alternative to the Template Method is the Strategy design pattern, which factors the variant behavior into an interface.

    模板方法模式个选择策略模式,抽取多变行为一个接口中。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定