Their thoughts and actions feel scripted, as if they're following the steps of an algorithm.
他们的思想和行为让人感觉到是在遵循预先设定的指令,好像在按照一个算法的步骤在行事。
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.
模板方法使子类可以在不改变一个算法的结构的情况下,就可以重定义该算法的某些特定步骤。
应用推荐