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

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

(Multiple Choice)
4.9/5
(72)

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

(Multiple Choice)
4.8/5
(77)

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

(True/False)
4.9/5
(84)

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

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

(True/False)
4.9/5
(82)

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.9/5
(88)

A __________ of a base class expects to be overridden in 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)
4.7/5
(67)

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

(True/False)
4.8/5
(76)

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

(Multiple Choice)
4.9/5
(87)

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

(Multiple Choice)
4.9/5
(81)

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

(Multiple Choice)
4.7/5
(71)

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

(Multiple Choice)
4.9/5
(83)

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

(True/False)
4.8/5
(89)

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

(True/False)
4.8/5
(79)

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

(Multiple Choice)
4.9/5
(83)

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

(Multiple Choice)
4.9/5
(77)

The __________ constructor is called before the __________ constructor.

(Multiple Choice)
4.8/5
(81)

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

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

Filters

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