Chapter 15 - COSC
The ________ destructor is called before the ________ destructor.
derived, base
When more than one class is derived from a base class, the situation is called
none of these
The ___ members of a base class are never accessible to a derived class.
private
Which is the derived class in the following statement? class Car : protected Vehicle
Car
The compiler performs ________ on virtual functions.
Dynamic Binding
Arguments are passed to the base class by the ________ class ________ function.
None of these
The following statement allows the ________ members of the Car class to access ________ members of the Vehicle class. class Car : public Vehicle
None of these
Which is the base class in the following statement? class Car : public Vehicle
Vehicle
The base class's ________ affects the way its members are inherited by the derived class
access specification
Multiple inheritance opens the opportunity for a derived class to have ________ members.
ambiguous
What is being protected in the following statement? class Car : protected Vehicle
base class members
The ________ constructor is called before the ________ constructor.
base, derived
In OOP programming, ________ allows you to create new classes based on existing classes.
inheritance
Which of the following is commonly used to extend a class or to give it additional capabilities?
inheritance
When you derive a class from an existing class, you ________ add new data and functions.
may
Polymorphism is when ________ in a class hierarchy perform differently, depending on which object performs the call.
member functions
When a derived class has two or more base classes, the situation is called
multiple inheritance
C++11 introduced the ________ key word to help prevent subtle errors when overriding virtual functions.
override
The term ________ means the ability to take many forms.
polymorphism
When member functions behave differently depending on which object performed the call, this is an example of
polymorphism
Protected members of a base class are like ___, but they may be accessed by the derived class.
private members
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
static binding
A virtual function is declared by placing the ___ key word in front of the return type in the base class's function declaration.
virtual
Functions that are dynamically bound by the compiler are ________ functions.
virtual
A ________ of a base class expects to be overridden in a derived class.
virtual function