Exam 12: Inheritance

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Superclasses are also called _______________ classes.

(Short Answer)
4.9/5
(37)

_______________ is used to create an 'is a' relationship among classes.

(Short Answer)
4.8/5
(40)

What is the relationship called in which one object is a specialized version of another object?

(Multiple Choice)
4.8/5
(33)

When a class inherits another class, it is required to use all the data attributes and methods of the superclass.

(True/False)
4.8/5
(37)

Each subclass has a method named __init__ that overrides the superclass's __init__.

(True/False)
4.9/5
(38)

New attributes and methods may be added to a subclass.

(True/False)
4.9/5
(34)

_____ allows a new class to inherit the members of the class it extends.

(Multiple Choice)
4.9/5
(34)

Polymorphism works on any two class methods that have the same name.

(True/False)
5.0/5
(44)

An 'is a' relationship exists between a grasshopper and a bumblebee.

(True/False)
4.9/5
(33)

The _______________ function determines whether an object is an instance of a specific class, or an instance of a subclass of that class.

(Short Answer)
4.8/5
(41)

What concept involves a superclass and a subclass?

(Multiple Choice)
4.8/5
(37)

It is not possible to indicate inheritance in a UML diagram.

(True/False)
4.8/5
(29)

The term _______________ refers to an object's ability to take different forms.

(Short Answer)
4.8/5
(29)

Base classes are also called _____.

(Multiple Choice)
4.9/5
(39)

_______________ allows subclasses to have methods with the same names as methods in their superclasses.

(Short Answer)
4.9/5
(40)
Showing 21 - 35 of 35
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)