• 有了清单11中编写的新的行为方法之后,现在可以来运行它 —但是这时会产生一个错误,如清单 13 所示。

    With the new behavior method coded in Listing 11, it's time to run it — but doing so indicates a failure, as shown in Listing 13.

    youdao

  • 鼓励员工保持健康的一个更有效的方法是鼓励他们养成健康的行为习惯。

    A more productive method of encouraging health among employees is to promote healthy behaviors.

    youdao

  • 在本教程中,您将了解如何采用各种方法对系统进行自定义、更改其行为、并使其按照您所希望的方式进行工作。

    In this tutorial, you learn how to customize the system in various ways, changing its behavior and getting it to work the way you want it to.

    youdao

  • 上节课我们讨论了动物行为的一些模式,今天的课我们将集中讨论动物研究中使用的方法。

    Last time, we discussed some patterns of animal behaviour, and in today's lecture we will concentrate on the methods used in the study of animals.

    youdao

  • 尽管罚款是惩罚这些行为的一种方法,但绝不是唯一的方法。

    Though penalty is one of the methods to punish this sort of behavior, it is never the only way.

    youdao

  • 如果您像其他许多程序员一样不喜欢为代码加注,则单元测试是记录代码行为的一种方法。

    If you're like many programmers who aren't fond of commenting code, unit tests are a way of documenting your code behavior.

    youdao

  • 但好消息是你可以学习一些应对他们行为的简单方法。

    But the good news is there are simple ways you can learn to deal with their behaviors.

    youdao

  • 这些鸟很难观察,因为它们生活在山区森林里,所以研究人员在一些鸟的尾巴上安装了微型摄像机,以此作为一种研究它们行为的方法。

    The birds are hard to observe, as they live in a region of mountainous forest, so the researchers have attached tiny cameras to the tails of some birds, as one method of investigating their behaviour.

    youdao

  • 我们仅仅重新定义需要修改其行为的方法。

    We only redefine the methods whose behavior we need to modify.

    youdao

  • 委托模式将提供一种基于各种条件委托行为的方法。

    The delegate pattern provides a way of delegating behavior based on different criteria.

    youdao

  • 类是按照它们的名称、属性(或者数据),以及行为(或者方法)来定义的。

    Classes are defined in terms of their name, attributes (or data), and behaviors (or methods).

    youdao

  • PlayerControl接口有许多用来控制播放器的行为的方法。

    The PlayerControl interface has many methods to control the player's behaviors.

    youdao

  • 它同样使定义“transactionattributes”来映射事务行为到方法上变得简单的多。

    It also becomes easier to define "transaction attributes" mapping transactional behavior onto methods.

    youdao

  • 根据这些原则,对数据bean进行了重新设计以使它们不具备行为和方法。

    With those principles in mind, data beans have been redesigned so they have no behavior and no methods.

    youdao

  • 清单12.equals方法的默认行为。

    Listing 12. The default behavior of the equals method.

    youdao

  • 方面功能可以通过多种方法编排对象的行为。

    Aspect functionality can be weaved around an object's behavior in many ways.

    youdao

  • 如果愿意的话,还可以将行为委派给方面的公共方法。

    You can also delegate the behavior to a public method on the aspect if you choose.

    youdao

  • “所有这些国家都将受到某种影响,它们必须改变他们的行为和商业方法,”Arif说。

    “All these countries are going to be affected in some way and they’ve got to change their behavior and the way they do business,” Arif says.

    youdao

  • 域、构造器和方法都可以激活此行为。

    This behavior is enabled for fields, constructors, and methods.

    youdao

  • 如果出现这种情形,通常这些方法的行为是未定义的,虽然这里的具体实现可能会尝试做某些合理的事情。

    If it does, the behavior of these methods is undefined in the general case, although this specific implementation attempts to do something reasonable.

    youdao

  • 如果可以重写类的话,则可以重写它的方法的行为,因此您最安全的选择就是不允许将类子类化。

    If the class can be overridden, its methods' behaviors can be overridden as well, so your safest bet is to disallow subclassing.

    youdao

  • ProjectExplorer视图显示了OrderProcessor提供者各个部分的列表,以及每一个被提供的操作的方法(行为)。

    The Project Explorer view shows a list of the parts of the OrderProcessor provider and a method (behavior) for each provided operation.

    youdao

  • 图7中的Project Explorer视图显示了OrderProcessor提供商部分的列表以及每一个提供的操作的方法(行为)。

    The Project Explorer view in Figure 7 shows a list of the parts of the OrderProcessor provider and a method (behavior) for each provided operation.

    youdao

  • 以往这种法律行为会导致乐迷寻找新的方法分享音乐。

    In the past, such legal actions have led music fans to find new ways of sharing files.

    youdao

  • 如果这些类中的任何一个的子类需要覆盖默认行为,那么可以通过覆盖这个方法实现。

    If a subclass of one of these classes needed to override the default behavior, it could do so by overriding the method.

    youdao

  • BGGA方案的主要目标之一是允许程序员创建行为类似控制结构的方法。

    One of the primary goals of the BGGA proposal is to allow programmers to create methods that act like control structures.

    youdao

  • EJB 2.0规范没有指定如果没有全局事务下运行方法时容器的行为。

    The EJB 2.0 specification does not specify the behavior of the container in the case where a method runs without a global transaction.

    youdao

  • Abbot是一种JUnit扩展框架,主要目的是使GUI组件实现编程隔离,它还提供了一种验证GUI行为的简易方法。

    Abbot is a JUnit extension framework specifically intended to enable programmatic isolation of GUI components, and it provides an easy way to validate GUI behavior.

    youdao

  • 现在我可以为pop方法编写行为,即确保当栈在逻辑上为空时,抛出一个异常。

    Now I can code the behavior for the pop method, which ensures that if the stack is logically empty, an exception will be thrown.

    youdao

  • 现在我可以为pop方法编写行为,即确保当栈在逻辑上为空时,抛出一个异常。

    Now I can code the behavior for the pop method, which ensures that if the stack is logically empty, an exception will be thrown.

    youdao

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

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

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