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
(29)
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
(35)
Correct Answer:
Verified

C

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

Free
(True/False)
4.7/5
(40)
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
(42)

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

(Multiple Choice)
4.8/5
(42)

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

(Multiple Choice)
4.9/5
(41)

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

(True/False)
4.8/5
(38)

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

(Multiple Choice)
4.9/5
(32)

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

(Multiple Choice)
4.8/5
(32)

The term __________ means the ability to take many forms.

(Multiple Choice)
5.0/5
(41)

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

(Multiple Choice)
4.8/5
(43)

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

(Multiple Choice)
4.8/5
(31)

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

(Multiple Choice)
4.8/5
(32)

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

(Multiple Choice)
4.8/5
(34)

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

(Multiple Choice)
4.8/5
(36)

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

(True/False)
4.9/5
(43)

The compiler performs __________ on virtual functions.

(Multiple Choice)
4.9/5
(39)

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

(Multiple Choice)
4.9/5
(43)

__________ functions are dynamically bound by the compiler.

(Multiple Choice)
4.7/5
(44)

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

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

Filters

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