In fact, you can substitute the base class for every node object, giving your whole application custom behaviors.
事实上,您可以置换每种节点对象的基类,从而能够定制整个应用程序的行为。
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.
一种直观演示动态类型化工作方式的简单方法是,设想单个名为pyobject的基类,让Python中的所有其他对象类型都继承它。
I'll start by creating a base class that holds an instance of an Entity object.
我将首先创建一个基类,用于容纳entity对象的一个实例。
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.
工人对象RequestContext是在基类中定义的,提供的finalexecute方法定义了对请求进行监视的流程。
Every class in Flex that extends from the base class Sprite, has an embedded graphics object in it.
Flex中每个从基础类Sprite扩展而来的类都具有一个嵌入的图片对象。
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.
现在,您只需要知道:int对象是从object类中继承而来,它是Python中许多内容的一个基类。
The Object class provides some base functionality common to every single class in .NET.
Object类提供了一些基础的功能为每一个单独的泪所共用。
The top object class is the base class for all object classes in LDAP.
top对象类是LDAP中所有对象类的基类。
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.
通过利用RailsActiveRecord类的对象-关系映射代码,这是可以实现的,该类是所有模型的基类(包括patient 类)。
An object providing access to the base class list of the parent object.
一个对象,用于提供对父对象的基类列表的访问。
When we construct, copy, assign, or destroy an object of derived type, we also construct, copy, assign, or destroy those base-class subobjects.
当构造、拷贝、赋值或撤销一个派生类对象时,也要构造、拷贝、赋值或撤销那些基类的子对象。
If the method is defined only in base class then it will invoke base class method irrespective to the object you are passing.
如果方法是定义在基类然后它会调用基类方法不论你是对象传递。
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.
在继承中,派生类接受基类的成员变量和方法。这表示继承的顺序必须在对象构造的时候被遵守。
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 your given example program1, display method is defined in both base and sub classes and you are trying to invoke it with the sub class object.
在你给的例子程序1,显示的方法是在基站和子类的定义和你试图调用它的子类对象。
As a result, you can exactly substitute an object of the derived class for an object of the base class.
结果是你可以用衍生类的对象替代基类的对象。
The base package including point class, line class, area class, volume class, complex object class and relation class, is the base of the application package and the combination package.
其中基础类包是应用类包和组合类包的基础,它用点、线、面、体、复杂对象和关系类等基本的要素表示三维空间。
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.
当你调用一个方法是定义在子类和基类,然后它会调用一个基于对象要通过法。
Base class for attributes that define how properties of types in the object layer are mapped to the properties of entity types or complex types in the conceptual model.
特性的基类,这些特性定义如何将对象层中的类型映射到概念模型中的实体类型和复杂类型。
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.
每一个项目,我只是从该基类的字体名称,创建一个名为字体对象,我绘制文本,恢复以前的字体,瞧。
At first, the function of OMS is presented. Then the OMS's architecture, base class and object access method is described in detail. At last the use and the future work of OMS is presented.
首先介绍了OMS的基本功能,并详细描述了OMS的结构、基本类以及对象的存取方法,最后简单介绍了OMS的使用方法以及今后的工作。
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.
如果我有一个对象的指针,转换到它的基类指针对象上,我能通过基类指针调用合适的成员函数。
When the class object is constructed, the base class is remembered.
构造派生类对象时,就记住了基类。
Since all objects in the class pool are upcast to their common base class, the polymorphism of the method leads to that which object method will be executed can only be ascertained at runtime.
由于所有位于对象池中的对象都被上溯到它们的基类型,方法多态使得只有在运行时刻才能真正确定到底哪个对象的方法被执行。
Gets the object associated with the specified, base-class, type.
获取与指定的基类类型关联的对象。
Gets the object associated with the specified (base-class) type.
获取与指定(基类)类型关联的对象。
Now the methods are called using the object of the CGLView class instead of calling it directly as base class methods.
通过CGLView的对象调用方法代替了以基类形式直接调用基类的方法操作模式-如下。
Though you call it with sub class object, it will run only base class implementation.
虽然你叫它的子类对象,它将只运行基类的实现。
The base class for the results of an object query against a conceptual model.
表示针对概念模型的对象查询的结果的基类。
The base class for the results of an object query against a conceptual model.
表示针对概念模型的对象查询的结果的基类。
应用推荐