当基于已有类创建子类的时候,已有类称为父类或基类,这个新类称为子类或派生类。When subclasses are created based on existing classes, existing classes are called parent classes or base classes, and this new class is called subclasses or derived classes.? 错误|正确
举一反三
- 允许基于已有类来创建新类的OOP特性称为继承。The OOP feature that allows new classes to be created based on existing classes is called inheritance.
- Object-oriented programming allows you to derive new classes from existing classes. This is called ____________. A: encapsulation B: inheritance C: abstraction D: generalization
- 通过类的继承创建的新类称为“子类”或() A: A“基类” B: B“子类” C: C“父类” D: D“派生类”
- 被继承的类称为基类(或父类),继承的类称为派生类(子类)。
- 如果是类B在类A的基础上构造,那么,就称()。 A: 类A为基类或父类,类B为超类或子类 B: 类A为基类、父类或超类,类B为派生类或子类 C: 类A为派生类,类B为基类 D: 类A为派生类或子类,类B为基类、父类或超类