COSC 1436 - Ch 11
2. It is not possible to call a superclass's __ init __ method from a subclass's __ init __ method. T or F
False
4. Only the __ init __ method can be overridden. T or F
False
3. A subclass can have a method with the same name as a method in the superclass. T or F
True
5. You cannot use the isinstance function to determine whether an object is an instance of a subclass of a class. T or F
True
1. ______ allows a new class to extend an existing class. The new class inherits the members of the class it extends. a. encapsulation b. polymorphism c. inheritance d. abstraction
c. Inheritance
4. This characteristic of object-oriented programming allows the correct version of an overridden method to be called when an instance of a subclass is used to call it. a. polymorphism b. inheritance c. generali zation d. specialization
polymorphism
2. In an inheritance relationship, the _____ is the specialized class. a. superclass b. master class c. subclass d. parent class
subclass