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

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

(True/False)
4.7/5
(73)

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

(True/False)
4.9/5
(76)

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

(Multiple Choice)
4.9/5
(81)

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

(Multiple Choice)
5.0/5
(68)

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

The ________ destructor is called before the _______ destructor.

(Multiple Choice)
4.9/5
(60)

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

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

(Multiple Choice)
4.9/5
(62)

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

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

(Multiple Choice)
4.9/5
(91)

The ________ constructor is called before the _______ constructor.

(Multiple Choice)
4.9/5
(88)

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

(Multiple Choice)
4.8/5
(69)

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

(Multiple Choice)
5.0/5
(78)

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

(True/False)
4.8/5
(73)

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

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

(Multiple Choice)
4.9/5
(91)

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

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

Filters

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