chapter 15 (cont)
The ________ destructor is called before the ________ destructor.
derived, base
The ________ constructor is called before the ________ constructor.
base, derived
When you derive a class from an existing class, you ________ add new data and functions.
may
The compiler performs ________ on virtual functions. static binding dynamic binding additional error checking no special services None of these
dynamic binding
Polymorphism is when ________ in a class hierarchy perform differently, depending upon which object performs the call. Answers: base class constructors derived class destructors member functions derived class constructors None of these
Member functions
________ to a base class may be assigned the address of a derived class object. Access specifiers Static members Private members Pointers None of these
Pointers
______ members of a base class are never accessible to a derived class.
Private
The term ________ means the ability to take many forms. inheritance polymorphism member function encapsulation None of these
polymorphism
When member functions behave differently, depending upon which object performed the call, this is an example of ________. chaos theory virtual insubordination polymorphism encapsulation None of these
polymorphism
________ allows us to create new classes based on existing classes.
Inheritance
________ is commonly used to extend a class, or to give it additional capabilities. Inheritance Privacy The constructor The destructor None of these
Inheritance
When more than one class is derived from a base class, the situation is called:
None of these
When a derived class has two or more base classes, the situation is known as ________. multiple inheritance polymorphism encapsulation access specification None of these
multiple inheritance
________ functions are dynamically bound by the compiler.
virtual