子类和继承(Subclassing and Inheritance) 子类和一般的类一样,也是用来描述对象的结构的。但是,它是通过继承其它类的结构来渐进式地实现这个目的。
基于44个网页-相关网页
Class的抽象可由子类化和一种灵活的基于mixin的组合机制(它可作为多重继承的简单替代方案)来扩展。
Class abstractions are extended by subclassing and a flexible mixin-based composition mechanism as a clean replacement for multiple inheritance.
这就是,一个子类从超类中继承属性和方法。
That is, how a subclass can inherit fields and methods from a superclass.
在类设计器中,您可以允许子类中的方法和属性等成员重写从基类继承的成员。
In class Designer, you can allow members such as methods and properties in a child class to override members inherited from a base class.
应用推荐