对比抽象基类和接口的使用。
Contrast the use of an abstract base class against an interface?
不支持访问从虚拟基类继承的数据字段。
Access to data fields inherited from a virtual base class is not supported.
因而,最好是创建一个可重用的通用基类。
Therefore it is a good idea to create a generic base class that can be reused later.
连接是通过创建pdo基类的实例而建立的。
Connections are established by creating instances of the PDO base class.
这个基类将使编写处理程序类更加容易。
This is a base class that makes writing handler classes easier.
前三个类构成了类层次结构的基类。
The first three classes constitute the base classes of the class hierarchy.
清单9基于编译器会优化空基类的假设。
Listing 9 is based on the assumption that the compiler optimizes away the empty base classes.
派生类具有跟基类相同的动态类属性。
The derived classes have the same dynamic class attributes of the base class.
基类还为标记的名称定义了一些简单的常量。
The base class also defines some simple constants for the names of the tags.
在整个系统中都会使用的部分可以放到基类里面。
The parts that are common throughout all your systems go to a base class you always use.
图1为包含审计字段的持久化实体提供了一个基类。
Figure 1 presents a base class for persistent entities that contains the necessary auditing fields.
joContainer是组织ui元素集合的基类。
JoContainer is the base "class" for organizing sets of UI elements.
首先,我要创建一个抽象基类,用于表示我们要公开的服务。
To begin we create an abstract base class which represents the service we want to expose.
支持接口的每项服务或代理必须继承定义该接口的抽象基类。
Each service or proxy that supported an interface was required to inherit from the abstract base class that defined the interface.
导出插件的基类还定义了term回调,用于结束导出会话。
The base class of export plug-in also defines a term callback for the end of an export session.
基类叫做Viewer,它是结构化查看器的一个扩展。
The base class is called viewer, which is an extension of a structured viewer.
实现需要扩展某个基类,并且应该提供由框架实现的异步接口。
The implementation has to extend a certain base class, and there should be an asynchronous interface that the framework implements.
第一个类扩展Page(所有页面组件的基类)。
Your first class extends from Page, which is the base class for all of your page components.
首先,创建一个抽象的基类,封装此通用功能,如清单7所示。
First, create an abstract base class that encapsulates this common functionality, as in Listing 7.
清单5给出的代码在优化了空基类的编译器上证明了这一点。
Listing 5 shows the code that proves the point on compilers optimizing empty base classes.
在我结束对类型大小调整的讨论之前,我还希望提一下基类。
Before I conclude the discussion of the sizing of types, I also want to mention base classes.
UDDI基类构成了UDDI注册中心存储的通用数据结构。
The UDDI base classes form the general data structures that the UDDI registry stores.
我将首先创建一个基类,用于容纳entity对象的一个实例。
I'll start by creating a base class that holds an instance of an Entity object.
这两个控制器类都继承控制器基类来继承后者提供的通用功能。
Both controller classes extend the base controller class to inherit the common functionality it provides.
派生类可以指明它实现了其基类的接口,但是并不是一定要这么做。
Derived classes are not required to re-state that they implement an interface from their base class, but are permitted to do so. (This case is special; see below for more details.)
在StAX的当前版本,没有可以通过扩展实现定制事件的抽象基类。
In the current version of StAX, there is no abstract base class that one can extend to implement custom events.
相反,如果试图在基类中直接调用Enhance,则可能会遇到问题。
You would have run into trouble, instead, if you tried to call Enhance directly in the base class.
您可能会非常合理地想到,也可以定义xo基类的子类来实现同样的增强。
You might think, reasonably enough, that the same enhancement can be accomplished simply by subclassing the XO base class.
那么就是说派生程度较低的接口是否被声明在基类列表中是可选的了?
So it's optional whether the less-derived implemented interfaces are stated in the base type list?
数据类别类似于抽象基类,比如,一个类别可以表示所有的汽车型号。
Data categories are like abstract base classes; a category might be able to represent all models of car, for instance.
应用推荐