Exam 15: Inheritance, Polymorphism, and Virtual Functions

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

A member function of a derived class may not have the same name as a member function of a base class.

Free
(True/False)
4.8/5
(73)
Correct Answer:
Verified

False

When you derive a class from an existing class, you _________ add new data and functions.

Free
(Multiple Choice)
4.9/5
(75)
Correct Answer:
Verified

C

A derived class may not have any classes derived from it.

Free
(True/False)
4.7/5
(79)
Correct Answer:
Verified

False

The base class access specification can be viewed as a filter that base class members must pass through when becoming inherited members of a derived class.

(True/False)
4.9/5
(83)

A virtual function is a member function that expects to be _________ in a derived class.

(Multiple Choice)
4.8/5
(92)

When more than one class is derived from a base class, the situation is called:

(Multiple Choice)
4.9/5
(82)

A derived class may become a base class, if another class is derived from it.

(True/False)
4.8/5
(75)

Polymorphism is when ____________ in a class hierarchy perform differently, depending upon which object performs the call.

(Multiple Choice)
4.9/5
(65)

The base class's __________ affects the way its members are inherited by the derived class.

(Multiple Choice)
4.8/5
(83)

The term __________ means the ability to take many forms.

(Multiple Choice)
4.9/5
(85)

____________ is commonly used to extend a class, or to give it additional capabilities.

(Multiple Choice)
4.8/5
(91)

The base class access specification determines how ___________ members in the base class may be accessed by derived classes.

(Multiple Choice)
4.8/5
(68)

A __________ of a base class expects to be overridden in a derived class.

(Multiple Choice)
4.8/5
(87)

Arguments are passed to the base class destructor function by the ________ class __________ function.

(Multiple Choice)
4.8/5
(85)

_________ members of a base class are never accessible to a derived class.

(Multiple Choice)
4.8/5
(81)

When arguments must be passed to the base class constructor, they are passed from the derived class constructor's header line.

(True/False)
5.0/5
(89)

The compiler performs __________ on virtual functions.

(Multiple Choice)
4.9/5
(80)

When member functions behave differently, depending upon which object performed the call, this is an example of ___________.

(Multiple Choice)
4.9/5
(90)

__________ functions are dynamically bound by the compiler.

(Multiple Choice)
4.7/5
(83)

_________ allows us to create new classes based on existing classes.

(Multiple Choice)
4.9/5
(97)
Showing 1 - 20 of 38
close modal

Filters

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