Exam 15: Inheritance, Polymorphism, and Virtual Functions

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

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

(Multiple Choice)
4.8/5
(38)

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

(Multiple Choice)
5.0/5
(35)

Static binding occurs when the compiler binds a function call with the function call that resides in the same class as the call itself.

(True/False)
4.7/5
(37)

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

(Multiple Choice)
4.8/5
(33)

The term ________ means the ability to take many forms.

(Multiple Choice)
4.8/5
(29)

In the following statement: In the following statement:   What is being protected? What is being protected?

(Multiple Choice)
4.9/5
(31)

The ________ destructor is called before the ________ destructor.

(Multiple Choice)
4.8/5
(39)

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

(Multiple Choice)
4.8/5
(28)

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

(True/False)
4.9/5
(33)

In the following statement: In the following statement:   ________ is the derived class. ________ is the derived class.

(Multiple Choice)
4.8/5
(47)

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

(Multiple Choice)
4.7/5
(36)

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

(Multiple Choice)
4.8/5
(41)

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

(Multiple Choice)
4.9/5
(38)

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

(True/False)
5.0/5
(29)

In an inheritance situation, you may not pass arguments to a base class constructor.

(True/False)
4.7/5
(34)

When a derived class has two or more base classes, the situation is known as ________.

(Multiple Choice)
4.8/5
(38)

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

(Multiple Choice)
4.7/5
(38)

C++ 11 introduces the ________ key word to help prevent subtle errors when overriding virtual functions.

(Multiple Choice)
4.8/5
(34)

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

(Multiple Choice)
4.8/5
(36)

________ functions are dynamically bound by the compiler.

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

Filters

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