Object-oriented programming allows you to derive new classes from existing classes. This is called ____________.
A: encapsulation
B: inheritance
C: abstraction
D: generalization
A: encapsulation
B: inheritance
C: abstraction
D: generalization
举一反三
- An object-oriented database is one that is congruent with the data defined in object classes and sub classes.
- 当基于已有类创建子类的时候,已有类称为父类或基类,这个新类称为子类或派生类。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.
- ______ is a property of object—oriented software by which an abstract operation may be performed in different ways in different classes. A: Method B: Polymorphism C: Inheritance D: Encapsulation
- Which of the following is NOT one of the 3 characteristics of object-oriented programming? A: extensibility B: inheritance C: encapsulation D: polymorphism