所有的类都从一个通用的基类继承。
在类继承关系内移动成员。
基类:被子类继承的类。
第三方的类必须被重写,只能从抽象类继承。
A third party class must be rewritten to extend only from the abstract class.
Ostrich(鸵鸟)是一种鸟(显然是),并从Bird类继承。
Ostrich is a Bird (definitely it is!) and hence it inherits the Bird class.
NET生成另外一个从在步骤3 中生成的类继承的类。
NET generates another class that inherits from the class generated in Step 3.
相反,你只是定义个对象,让它从enumeration类继承。
Instead, you just define an object that extends the Enumeration class.
同时也要注意这个类继承了Expando,因为这个在后面很重要。
Also note that this class extends Expando, as this will be important later.
在继承层次的每个端点,我们需要两个新类来完成这个。
We need two new Classes at either end of the inheritance hierarchy to do this.
请记住,您需要为类添加必要的继承抽象方法。
Remember that you need to add the necessary inherited abstract methods for your class.
继承:标注——单个表、联合表和按类表。
Inheritance: Annotations — Single table, joined table, and table per class.
您将注意到从HCHandler继承的类。
这妨碍了Person继承其他类。
This would preclude Person from inheriting from any other class.
一个子(或继承的)类只可以有一个父类(基类)。
A child (or derived) class can have one and only one parent (or base) class.
这个泛型类的每个应用都会继承一个不同的父类。
Each application of this generic class would extend a distinct parent class.
所有的异常继承自一个基类。
但是,像他这样一类的贵族太过骄傲,不屑于保护自己的继承物。
由于Ruby是动态类型的,所以这些子类无需从通用基类中继承。
Since Ruby is dynamically typed, they need not inherit from a common base class.
因为类的多重继承有危险性。
类shape的继承结构在shapes包(package)中定义。
分配给类的自定义操作的继承模型是怎样的?
What is the inheritance model of custom actions that are assigned to classes?
OOP技术由对象、消息、方法、类和继承五个方面组成。
OOP consists of five aspects: object, message, method, class and inheritance.
我怎么能有一个字符串重写一个从继承的类?
How am I able to have a string override one from an inherited class?
目的:如何继承类加载父类中的方法?
Objective c: how to inherit category methods loaded in a parent class?
所有的网络请求应该继承它的类。
名称也不能与继承的类中的任何组件名称冲突。
A name also cannot conflict with the name of any component in an inherited class.
从接口继承,不要继承于具体类。
抽象类是与另一个类有关的继承关系中的基类。
The abstract class is the base class in an inheritance relationship with another class.
基类的更改可能会改变要继承的元素。
The base class might undergo a change that alters the element you are inheriting.
能够实现允许某个类被继承,但不允许其中的某个方法被覆写么?
Can you allow class to be inherited, but prevent the method from being over-ridden?
应用推荐