Contrast the use of an abstract base class against an interface?
对比抽象基类和接口的使用。
In Listing 11, the abstract base class implements an interface AsyncCallback.
在清单11中,抽象类实现AsyncCallback接口。
To begin we create an abstract base class which represents the service we want to expose.
首先,我要创建一个抽象基类,用于表示我们要公开的服务。
First, create an abstract base class that encapsulates this common functionality, as in Listing 7.
首先,创建一个抽象的基类,封装此通用功能,如清单7所示。
Page acts as an abstract base class for all pages and can contain any arbitrary tree of Components.
Page充当所有页面的抽象基类并可包含 Component 的任意树。
The first file will contain the abstract base class, which is the only code the client needs.
第一个文件会包含抽象基类,这是客户端唯一需要的。
A class containing (or inheriting) one or more pure virtual functions is an abstract base class.
类包含或者继承一个或多个纯虚函数,这样的类就是抽象基类。
In the current version of StAX, there is no abstract base class that one can extend to implement custom events.
在StAX的当前版本,没有可以通过扩展实现定制事件的抽象基类。
An abstract base class imposes unnecessary restrictions on application-oriented development of the class hierarchy.
抽象基类给面向应用的开发的类结构强加了不必要的约束。
The customer class can be an abstract base class for a family of different customer types, such as private or business customer.
客户类可以是用于许多不同客户类型的抽象基类,比如说私有客户或业务客户。
Each service or proxy that supported an interface was required to inherit from the abstract base class that defined the interface.
支持接口的每项服务或代理必须继承定义该接口的抽象基类。
An interface is like an abstract base class: any non-abstract type that implements the interface must implement all its members.
接口是一个抽象基类,如:实现接口的任何非抽象类型必须实现它的所有成员。
The support contains predefined FactoryBeans for Jackrabbit and Jeceira and an abstract base class which can easily support other repositories.
这个支持包含预定义的用于Jackrabbit和Jeceira的FactoryBean,以及一个可以很容易支持其它仓库的抽象基类。
If I have a pointer to an object cast to one of its base classes, I can call the correct member functions through the abstract base class.
如果我有一个对象的指针,转换到它的基类指针对象上,我能通过基类指针调用合适的成员函数。
To handle this, you implement customers as an abstract base class with many different subclasses (for example, financial, manufacturing, and so on).
要处理这个问题,要把客户实现成一个抽象基类,拥有许多不同的子类(例如,财务、制造等等)。
The TypeDescription class is just an abstract base class with methods defined for dealing with three kinds of types: primitives, arrays, and instances of classes.
TypeDescription类只是个抽象基类,其中定义了处理三种类型的方法:原生类型、数组和类实例。
The term abstract base class sounds formidable, but actually it is nothing but a class that declares the syntax of one or more of its functions without implementing them.
术语抽象基类听起来可怕,但是实际上没什么,它只是一个类,声明但没有实现它的函数而已。
The term abstract base class sounds formidable, but actually it is nothing but a class that declares the syntax of one or more of its functions without implementing them.
术语抽象基类听起来可怕,但是实际上没什么,它只是一个类,声明但没有实现它的函数而已。
应用推荐