Exam 11: Inheritance

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

When a subclass method has the same name as a superclass method, it is often said that the subclass method _______________ the superclass method.

(Short Answer)
4.7/5
(76)

A subclass may not override any method other than the __init__ method.

(True/False)
4.7/5
(90)

Base classes are also called _____.

(Multiple Choice)
4.8/5
(73)

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

(Short Answer)
4.9/5
(73)

When there are several classes that have many common data attributes, it is better to write a(n) _____ to hold all the general data.

(Multiple Choice)
4.9/5
(64)

In an inheritance relationship, a television is a(n) _______________ of the electronics class.

(Short Answer)
4.8/5
(74)

One of the ingredients of polymorphic behavior is the ability to define a method in a subclass, and then define a method with the same name in a superclass.

(True/False)
4.8/5
(76)

In the following line of code, what is the name of the subclass? Class Rose(Flower):

(Multiple Choice)
4.9/5
(76)

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

(Short Answer)
4.8/5
(83)

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

(True/False)
4.8/5
(81)

In a UML diagram, what does the open arrowhead point to?

(Multiple Choice)
4.9/5
(80)

Which of the following is the correct syntax for defining a class dining which inherits from class furniture?

(Multiple Choice)
4.8/5
(81)

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
(92)

A superclass inherits attributes and methods from its subclasses without any of them having to be rewritten.

(True/False)
4.9/5
(71)

In an inheritance relationship, what is a specialized class called?

(Multiple Choice)
4.7/5
(87)
Showing 21 - 35 of 35
close modal

Filters

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