Exam 15: Inheritance, Polymorphism, and Virtual Functions

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

Multiple inheritance is when a _________ class has ___________ base classes.

(Multiple Choice)
4.8/5
(45)

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

(True/False)
4.7/5
(38)

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

(True/False)
4.8/5
(36)

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

(Multiple Choice)
4.9/5
(33)

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

(Multiple Choice)
4.9/5
(35)

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

(Multiple Choice)
4.9/5
(43)

The ________ destructor is called before the _______ destructor.

(Multiple Choice)
4.9/5
(28)

The following statement class Car : private Vehicle Allows the __________ members of the Car class to access ___________ members of the Vehicle class.

(Multiple Choice)
4.8/5
(38)

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

(Multiple Choice)
4.9/5
(37)

A virtual function is declared by placing the keyword _______ in front of the return type in the base class's function declaration.

(Multiple Choice)
4.8/5
(36)

In the following statement class Car : protected Vehicle Which is the derived class?

(Multiple Choice)
4.8/5
(38)

The ________ constructor is called before the _______ constructor.

(Multiple Choice)
4.9/5
(37)

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

(Multiple Choice)
4.8/5
(28)

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

(Multiple Choice)
4.9/5
(32)

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

(True/False)
4.7/5
(34)

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.8/5
(38)

In the statement class car : public vehicle, which is the base class?

(Multiple Choice)
4.9/5
(41)

In the following statement class car : protected vehicle What is being protected?

(Multiple Choice)
4.9/5
(26)
Showing 21 - 38 of 38
close modal

Filters

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