Template Method lets subclasses redefine certain steps of an algorithm without changing the algorithm's structure.
模板方法模式使得子类可以不改变一个算法的结构即可重定义该算法的某些特定步骤。
Template Method lets subclasses redefine certain steps of an algorithm without changing the algorithm's structure.
模板方法使子类可以在不改变一个算法的结构的情况下,就可以重定义该算法的某些特定步骤。
Their thoughts and actions feel scripted, as if they're following the steps of an algorithm.
他们的思想和行为让人感觉到是在遵循预先设定的指令,好像在按照一个算法的步骤在行事。
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)强调了一个普遍的问题:我们知道算法的每一步,并且知道他们执行的顺序,但是我们不知道怎么样去执行所有的这些步骤。
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)强调了一个普遍的问题:我们知道算法的每一步,并且知道他们执行的顺序,但是我们不知道怎么样去执行所有的这些步骤。
应用推荐