除了作为抽象类的派生类对象的一部分,是不能够生成抽象基类对象的。
We may not create objects of an abstract type except as parts of objects of classes derived from the abstract base.
使用基类对象指针或引用的函数必须能够在不了解衍生类的条件下使用衍生类的对象。
Functions that use Pointers or references to base classes must be able to use objects of derived classes without knowing it.
你只需要将对象上传转化为基类对象不需要知道额外的信息,而这些都是通过多态实现的。
All you need to do is upcast from the derived class and never look back to see what exact type of object you're dealing with. Everything is handled through polymorphism.
事实上,您可以置换每种节点对象的基类,从而能够定制整个应用程序的行为。
In fact, you can substitute the base class for every node object, giving your whole application custom behaviors.
我将首先创建一个基类,用于容纳entity对象的一个实例。
I'll start by creating a base class that holds an instance of an Entity object.
工人对象RequestContext是在基类中定义的,提供的finalexecute方法定义了对请求进行监视的流程。
The worker object, a RequestContext, is defined in the base class and provides a final execute method that defines the flow for monitoring any request.
本文将描述如何封装用c编码的GObject(所有gtk +窗口小部件和许多相关对象的最终基类),以便可以从Python代码使用它。
This article describes how to wrap a C-coded GObject (the ultimate base class of all GTK + widgets and many related objects), so that it can be used from Python code.
UDDI请求类使Python客户机具有为实例化的请求对象设置请求参数的能力,请求参数由uddi基对象组成。
They provide a Python client the ability to set request parameters consisting of UDDI base objects for the instantiated request object.
例如,MicrosoftCompiler使用进程无关的偏移量来为虚拟继承类指定基对象,因而不存在这个问题。
For instance, Microsoft Compiler uses process-neutral offsets to address base objects for virtually inherited classes: thus, this issue does not arise.
Adapter基类将Adapter特定的Record对象发送到函数选择器。
The Adapter base classes send the Adapter-specific Record object to the Function Selector.
对象类使用继承特性,这意味着LDAP定义了基类来保存常用属性。
Object classes use inheritance, which means LDAP defines base classes to hold commonly used attributes. Child classes then extend the base classes to use the attributes defined therein.
一种直观演示动态类型化工作方式的简单方法是,设想单个名为pyobject的基类,让Python中的所有其他对象类型都继承它。
An easy way to visualize how the dynamic typing works is to imagine a single base class called PyObject from which all other object types in Python inherit.
还引入了BaseEntity和AuditableEntity基类,可以根据是否需要对象的审计信息,分别从这些基类派生出具体的持久化类。
It also introduces the BaseEntity and AuditableEntity base classes, from which concrete persistent classes can be extended, depending on whether or not auditing information is required for an object.
我们很希望cause、nonprofit、gift、member、drive、registry以及其他一些类型的对象都能够从通用的基类中继承,以便我们能以同样的方式处理所有类型的内容。
We would like causes, nonprofits, gifts, members, drives, registries, and many other types of objects to inherit from a common base class so we could treat all types of content in the same way.
通过利用RailsActiveRecord类的对象-关系映射代码,这是可以实现的,该类是所有模型的基类(包括patient 类)。
That is possible by leveraging the object-relational mapping code in Rails's ActiveRecord class that is the base class for all models (including your patient class.
现在,您只需要知道:int对象是从object类中继承而来,它是Python中许多内容的一个基类。
For now, you merely need to know that the int object inherits from the object class, which is a base class for a lot of things in Python.
这与调用基类的工厂方法并断言返回对象具有正确类型一样简单。
This can be as simple as invoking the base class's factory method and asserting that the returned object is of the correct type. For example.
当构造、拷贝、赋值或撤销一个派生类对象时,也要构造、拷贝、赋值或撤销那些基类的子对象。
When we construct, copy, assign, or destroy an object of derived type, we also construct, copy, assign, or destroy those base-class subobjects.
这些类按照特定的概念模型派生自可以将实体物化成对象的支持对象服务的基类从而可以实现跟踪和保存变更。
The classes generated for a particular conceptual model derive from base classes that provide Object Services for materializing entities as objects and for tracking and saving changes.
在构造方法中,对象很可能只是创建了一部分,你知道的仅仅是基类部分初始化了,但是不知道又继承出了什么。
Inside any constructor, the entire object might be only partially formed-you can know only that the base-class objects have been initialized, but you cannot know which classes are inherited from you.
在继承中,派生类接受基类的成员变量和方法。这表示继承的顺序必须在对象构造的时候被遵守。
In inheritance, the derived class receives the base class member variables and methods. This means that an order of inheritance must be followed during the construction of an object.
通过运行时类型识别(RTTI),程序能够使用基类的指针或引用来检索这些指针或引用所指对象的实际派生类型。
Run-time Type Identification (RTTI) allows programs that use pointers or references to base classes to retrieve the actual derived types of the objects to which these pointers or references refer.
该文描述了三相整流桥的一种仿真模型,并采用面向对象的方法建立了一个仿真基类和整流桥类。
A simulation model of the three-phase rectifier is described, and a CSimulateBase class and a CRectifier class are designed by the means of Object-Oriented method.
如果方法是定义在基类然后它会调用基类方法不论你是对象传递。
If the method is defined only in base class then it will invoke base class method irrespective to the object you are passing.
当你调用一个方法是定义在子类和基类,然后它会调用一个基于对象要通过法。
When you call a method which is defined in both sub class and base class then it will invoke a method based on the object you are passing.
结果是你可以用衍生类的对象替代基类的对象。
As a result, you can exactly substitute an object of the derived class for an object of the base class.
通过面向对象技术建立了风格基类和操作方法,结合风格形态设计过程探讨了风格描绘模型的应用模式。
The style class and operation by the object oriented method are presented, the (application) paradigm of style description model in the process shape design for style is discussed.
每一个项目,我只是从该基类的字体名称,创建一个名为字体对象,我绘制文本,恢复以前的字体,瞧。
Each item and I just retrieve the font name from the base class, create a font object with the name, I draw the text, restore the previous font and voila.
当一个类实现有多个基接口的接口时,从这个类生成的对象可以上溯到任何一个基接口。
When a class implements an interface that has multiple base interfaces, objects created from that class can be upcast to any of the base interface types.
当一个类实现有多个基接口的接口时,从这个类生成的对象可以上溯到任何一个基接口。
When a class implements an interface that has multiple base interfaces, objects created from that class can be upcast to any of the base interface types.
应用推荐