COSC 1436 - Ch 11

Ace your homework & exams now with Quizwiz!

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


Related study sets

Bio - Chapter 21 - evidence for evolution (c)

View Set

Radiology chapter 17: Panoramic examination

View Set

Fahmy 3030 ===> 12/2 Portuguese English sentences 1

View Set

Chronic Pain and Headaches Review (Prep U)

View Set

Os and Device Foundation Chapter 5-6

View Set

Health of the individual, family, and community NCLEX

View Set

Real Estate Continuing Education Practice Questions 45 hours

View Set