• In this case, we have it just print a message to the console and then call the base class version for actual handling.

    在此例中,我们仅让它向控制台打印一条消息,然后调用它的基类版本来执行实际的处理。

    youdao

  • In fact, you can substitute the base class for every node object, giving your whole application custom behaviors.

    事实上,您可以置换每种节点对象的基类,从而能够定制整个应用程序的行为。

    youdao

  • Connections are established by creating instances of the PDO base class.

    连接是通过创建pdo基类的实例而建立的。

    youdao

  • To begin we create an abstract base class which represents the service we want to expose.

    首先,我要创建一个抽象基类,用于表示我们要公开的服务。

    youdao

  • While technically not meant to act as a generic base class for addresses, it could be used for that purpose.

    虽然从技术的角度看,其没有打算充当地址的通用基类,但还是可以这样来使用。

    youdao

  • You might think, reasonably enough, that the same enhancement can be accomplished simply by subclassing the XO base class.

    您可能会非常合理地想到,也可以定义xo基类的子类来实现同样的增强。

    youdao

  • A base class is great for defining common functionality, but you must make sure that each data element defined is truly necessary.

    基类可以很好地定义常见功能,但是您必须确保所定义的每个数据元素都是真正需要的。

    youdao

  • The application's style sheet source should immediately follow the declaration of the application's base class (see Listing 5).

    应用程序的样式表源代码应该立即出现在应用程序基类声明之后(参见清单5)。

    youdao

  • You can then use the base class, or any of the subclasses, in methods that are typed to expect the base class as a method argument.

    然后您就可以在键入的以基类作为方法参数的方法中使用基类或任何一个子类。

    youdao

  • Subclassing the class is typically not an option here, since the method needs to be available to instances of the base class itself.

    在这种情况下,继承这个类通常是行不通的,因为所添加的方法需要在基类的实例中可用。

    youdao

  • Accessors reduce the risk of the fragile base class problem where changes in a superclass ripple throughout its subclasses.

    读写方法减少了超类中的更改影响到其子类的这种脆弱的基类问题所带来的风险。

    youdao

  • The basic solution is to define a base class or interface that can be accessed by the statically compiled code, then extend that base class or implement that interface in the generated class.

    基本的解决方案是定义可以用静态编译的代码访问的基类或者接口,然后生成的类扩展这个基类或者实现这个接口。

    youdao

  • To model inheritance, use the generalization relationship provided by the UML modeling palette, which is drawn from the inherited class to the base class.

    要建模继承,可以利用由uml建模面板提供的一般化关系,它是从继承类到基础类而绘制出来的。

    youdao

  • Marking the base class as "private" allowed the derived class to inherit from it without actually becoming one of them.

    将基类标记为 “私有”允许派生类从该基类继承而来,而无需实际成为 一个基类。

    youdao

  • The customer class can be an abstract base class for a family of different customer types, such as private or business customer.

    客户类可以是用于许多不同客户类型的抽象基类,比如说私有客户或业务客户。

    youdao

  • Access to data fields inherited from a virtual base class is not supported.

    不支持访问从虚拟基类继承的数据字段。

    youdao

  • Another use of abstract classes is to create a single base class for multiple derived classes in which that base class should never be instantiated.

    抽象类的另一个用途是为多个派生类创建一个基类,在这些派生类中,基类决不会被实例化。

    youdao

  • The implementation has to extend a certain base class, and there should be an asynchronous interface that the framework implements.

    实现需要扩展某个基类,并且应该提供由框架实现的异步接口。

    youdao

  • I'll handle these differing requirements by using a base class for all parameter definitions, subclassing it for each specific type of parameter.

    我处理这些不同需求的方法是,首先为所有形参定义使用一个基类,然后为每一种特定类型的形参细分类这个基类。

    youdao

  • Figure 1 presents a base class for persistent entities that contains the necessary auditing fields.

    图1为包含审计字段的持久化实体提供了一个基类。

    youdao

  • Contrast the use of an abstract base class against an interface?

    对比抽象基类和接口的使用。

    youdao

  • The next thing you have to do is override any method from the base class or classes to populate the column.

    接下来需要覆盖来自基类或者类的任何方法来填充列。

    youdao

  • Each service or proxy that supported an interface was required to inherit from the abstract base class that defined the interface.

    支持接口的每项服务或代理必须继承定义该接口的抽象基类。

    youdao

  • To handle this, you implement customers as an abstract base class with many different subclasses (for example, financial, manufacturing, and so on).

    要处理这个问题,要把客户实现成一个抽象基类,拥有许多不同的子类(例如,财务、制造等等)。

    youdao

  • The derived classes have the same dynamic class attributes of the base class.

    派生类具有跟基类相同的动态类属性。

    youdao

  • The parts that are common throughout all your systems go to a base class you always use.

    在整个系统中都会使用的部分可以放到基类里面。

    youdao

  • The idea of inheriting from a base class without being able to downcast to it or upcast to the base just seemed silly.

    继承一个基类而无法将它向下或向上转换到基类的理念是不明智的。

    youdao

  • Therefore it is a good idea to create a generic base class that can be reused later.

    因而,最好是创建一个可重用的通用基类。

    youdao

  • First, create an abstract base class that encapsulates this common functionality, as in Listing 7.

    首先,创建一个抽象的基类,封装此通用功能,如清单7所示。

    youdao

  • Now, to select the base class, click the Add button, and select LibraryEntry from the dialog box.

    现在,可以选择这个基类,点击add按钮,然后从对话框中选择LibraryEntry。

    youdao

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

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

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