Exam 15: Inheritance, Polymorphism, and Virtual Functions

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

The __________ destructor is called before the __________ destructor.

(Multiple Choice)
5.0/5
(34)

When a derived class has two or more base classes, the situation is called

(Multiple Choice)
4.8/5
(29)

Protected members of a base class are like __________, but they may be accessed by derived classes.

(Multiple Choice)
4.8/5
(31)

More than one class may be derived from a base class.

(True/False)
4.9/5
(38)

Select all that apply. In an inheritance situation, the new class that you create from an existing class is known as the

(Multiple Choice)
4.8/5
(37)

Pointers to a base class may be assigned the address of a derived class object.

(True/False)
4.9/5
(34)

When the compiler binds a member function call with the version of the function that resides in the same class as the call itself, it is considered

(Multiple Choice)
4.8/5
(38)

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

(Multiple Choice)
4.8/5
(35)

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

(True/False)
4.8/5
(35)

In C++11, if a derived class attempts to override a final member function, the compiler generates an error.

(True/False)
4.8/5
(35)

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

(Multiple Choice)
4.9/5
(38)

Multiple inheritance opens the opportunity for a derived class to have ___________ members.

(Multiple Choice)
4.9/5
(42)

Functions that are dynamically bound by the compiler are __________ functions.

(Multiple Choice)
4.7/5
(27)

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

(Multiple Choice)
4.8/5
(36)

C++11 provides a way for a derived class to inherit some of the base class's constructors.

(True/False)
4.8/5
(36)

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

(True/False)
4.8/5
(33)

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

(Multiple Choice)
4.9/5
(39)

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

(Multiple Choice)
4.9/5
(36)

The __________ constructor is called before the __________ constructor.

(Multiple Choice)
4.8/5
(34)

Multiple inheritance is when a __________ class has __________ base classes.

(Multiple Choice)
4.9/5
(35)
Showing 21 - 40 of 43
close modal

Filters

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