Ch.15 Inheritance, Polymorphism, and Virtual Functions Flashcards
A derived class inherits the ________ of its base class.
Member
When both a base class and a derived class have constructors, the base class’s instructor is called _________ (first, last).
First
When both a base class and a derived class have destructors, the base class instructor is called _________ (first, last).
Last
An overridden base class function may be called by a function in a derived class by using the ________ operator.
scope resolution : :
When a derived class redefines a function in a base class, which version of the function do objects that are defined of the base class call? ________
base class
A(n) _______ member function in a base class expects to be overwritten in a derived class.
Virtual
________ binding is when the compiler binds member function calls at compile time.
static
_______ binding is when a function call is bound at run time.
Dynamic
________ is when member functions in a class hierarchy behave differently, depending on which object performs the call.
Polymorphism
When a pointer to a base class is made to point to a derived class, the pointer ignores any ________ the derived class performs, unless the function is ________.
Overriding, Virtual
A ________ class cannot be instantiated.
Abstract Base
A _____ function has no body, or definition, in the class in which it is declared.
Pure Virtual
A ________ of inheritance is where one class is derived from a second class, which in turn is derived from a third class.
Chain
_______ is where a derived class has two or more base classes.
Multiple Inheritance
In multiple inheritance, the derived class should always _______ a function that has the same name in more than one base class.
Override