superclass subclass abstract class 超类子类抽象类 ; 超类 ; 抽象类
Superclass & Subclass 超类与子类
superclass s subclass abstract class 超类
Superclass and Subclass 超类与子类
If fields make sense for one subclass but not the other, you can remove them from the superclass and push them down into the subclass they belong to.
如果一些字段对于某个子类有意义,但是对于其他子类没有意义,就可以把它们从超类中删除,并放到它们所属的子类中。
Since an instance of a subclass is an instance of your superclass, you could find multiple instances of the singleton.
由于子类的实例也是单例类的实例,所以可能出现多个单例实例并存的情况。
Every class you define is a subclass of owl: thing and a superclass of owl: Nothing.
您所定义的每个类都是owl: thing的子类,并且是owl: Nothing的超类。
应用推荐