模板方法 行为模式
Template method behavior pattern
以上为机器翻译结果,长、整句建议使用 人工翻译 。
模板方法模式的另一个选择是策略模式,它抽取了多变的行为到一个接口中。
An alternative to the Template Method is the Strategy design pattern, which factors the variant behavior into an interface.
youdao
应用推荐
模块上移
模块下移
不移动