abstract base class
抽象基底类别
2026-05-05 11:52 浏览次数 20
抽象基底类别
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 abstract base class from which the workflow runtime engine core services are derived.
工作流程载入器服务是衍生自此抽象基底类别。
in the current version of stax, there is no abstract base class that one can extend to implement custom events.
在stax的当前版本,没有可以通过扩展实现定制事件的抽象基类。
this class is an abstract base class for implementations which provide retrieval of unformatted data objects.
一个抽象的基类,只提供获取未格式化的原始数据。
the abstract base class from which all durable service persistence providers that implement locking are derived.
所有长期服务持续性提供者,都衍生自此抽象基底类别。
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.
术语抽象基类听起来可怕,但是实际上没什么,它只是一个类,声明但没有实现它的函数而已。
component sits at the top of the hierarchy and acts as an abstract base class for all components. it provides various features such as
component位于层次结构的最顶端,充当所有组件的抽象基类。
starting from each end and moving toward the middle, both the host application and the add-in have an abstract base class that defines a view of the object model that they both share.
宿主应用程序和外接程序分别从各自的端开始向中间移动,它们都具有一个抽象基类,用于定义它们共享的对象模型的视图。
in listing 11, the abstract base class implements an interface asynccallback.
在清单11 中,抽象类实现 asynccallback接口。
the abstract base class has a member treeitem that will be an instance of the treeitem widget in gwt and will be the client data with which the callback is associated when the callback class is used.
抽象基类有一个成员treeitem,它是gwt 中treeitem 部件的实例,包含客户机数据,在使用回调类时回调与这些数据相关联。
the support contains predefined factorybeans for jackrabbit and jeceira and an abstract base class which can easily support other repositories.
这个支持包含预定义的用于jackrabbit和jeceira的factorybean,以及一个可以很容易支持其它仓库的抽象基类。
the customer class can be an abstract base class for a family of different customer types, such as private or business customer.
客户类可以是用于许多不同客户类型的抽象基类,比如说私有客户或业务客户。
first, create an abstract base class that encapsulates this common functionality, as in listing 7
首先,创建一个抽象的基类,封装此通用功能,如 清单7 所示
each service or proxy that supported an interface was required to inherit from the abstract base class that defined the interface.
支持接口的每项服务或代理必须继承定义该接口的抽象基类。
forexample, in an operating system there could be an abstract base class for a certain variety of device drivers.
在操作系统里面对于多种不同的设备驱动程序,应该有一个抽象基类。
i implemented an abstract base class itemdata (listing 4), which has three properties: id, displayname, and dataready.
我实现了一个抽象基类itemdata(清单4),它有三个属性:id、displayname和dataready。
page acts as an abstract base class for all pages and can contain any arbitrary tree of components.
page充当所有页面的抽象基类并可包含component的任意树。
however the client does need to know what methods the service offers, so finally we get to use the abstract base class which we defined right at the beginning. the sample.h
不过,客户机并不需要知道提供了哪些方法和服务,因此,最终我们要使用在开始时定义的抽象基类。
contrast the use of an abstract base class against an interface?
对比抽象基类和接口的使用
if an abstract base class is not appropriate, interfaces can be chained together to build up functionality.
如果不适用于抽象基类,可以将接口串联在一起,以构建其功能。
the host view of the add-in is the abstract base class or interface that describes the methods used by the host and the add-in, as specified in the contract.
增益集的主检视为抽象基底类别或介面,会描述主机和增益集使用的方法,如合约中所指定。
to handle this, you implement customers as an abstract base class with many different subclasses (for example, financial, manufacturing, and so on).
要处理这个问题,要把客户实现成一个抽象基类,拥有许多不同的子类(例如,财务、制造等等)。