请输入您要查询的英文单词:

 

单词 template method
释义
template method
  • 简明释义
  • 模板方法:面向对象编程中,抽象类中的一种特殊方法,用于模板方法模式,规定了其子类的算法。
  • 网络释义
  • 1

    ?模板方法

    ...添加一些额外的功能;单件(Singleton):保证一个类仅有一个实例,并提供一个访问它的全局访问点;模板方法(Template Method):在方法中定义算法的框架,而将算法中的一些操作步骤延迟到子类中实现。请根据下面叙述的场景选用适当的设计模式。

  • 2

    ?模板方法模式

    ...提升方法作为父类方法也应依据具体情况而定,设计模式中好多种模式都有运用到了提升方法的方式,模板方法模式(Template Method)就是很常见的一个了。四、下置方法与上一篇文章中的提升方法到父类中是相反的做法。

  • 3

    ?模版方法模式

    模版方法模式(Template Method): 定义了一个操作中的算法的骨架,而将一些步骤延迟到子类中,它使得子类可以不改变一个算法的结构即可重定义该算法的某些特定步...

短语
  • 双语例句
  • 1
    A servlet that USES the Template Method pattern to encapsulate a three-step workflow.
    一个采用Template Method模式的Servlet封装一个包含三个步骤的工作流。
  • 2
    Similarly, classes using the Template Method pattern contain a series of steps, and some are left blank.
    类似地,采用Template Method模式的类也包含一系列的步骤,而其余的则留空。
  • 3
    The execute method delegates to an abstract template method, doExecute(), which is responsible for proceeding with the original join point.
    execute 方法委托抽象的模板方法 doExecute() 负责继续处理原始的连接点。
随便看

 

英汉双解词典包含3185865条英汉词条,基本涵盖了全部常用单词的翻译及用法,是英语学习的有利工具。

 

Copyright © 2004-2022 Newdu.com All Rights Reserved
更新时间:2025/8/6 19:43:43