允许基于已有类来创建新类的OOP特性称为继承。The OOP feature that allows new classes to be created based on existing classes is called inheritance.
举一反三
- 当基于已有类创建子类的时候,已有类称为父类或基类,这个新类称为子类或派生类。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.? 错误|正确
- Object-oriented programming allows you to derive new classes from existing classes. This is called ____________. A: encapsulation B: inheritance C: abstraction D: generalization
- 将数据与操作打包成一个单位,这种OOP的特性称为封装。Packaging data and operations into a single unit is a feature of OOP called encapsulation.
- 中国大学MOOC: 将数据与操作打包成一个单位,这种OOP的特性称为封装。Packaging data and operations into a single unit is a feature of OOP called encapsulation.
- 将数据与操作打包成一个单位,这种OOP的特性称为封装。Packaging data and operations into a single unit is a feature of OOP called encapsulation. A: 正确 B: 错误