chapter 15 (cont)

Ace your homework & exams now with Quizwiz!

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


Related study sets

journalism midterm concepts and vocab 3-4 - for march 5

View Set

STATS Chapter 3 START ALL GRAPHS AT ZERO

View Set

PCC 2 Diabetes practice questions

View Set

Accounts receivables and liabilities

View Set

Chapter 9: Muscles and Chapter 10 Test 3 (BIO 201 SUMMER 2019), A&P Lecture Ch. 8,9,11, Mastering HW Ch 9, Mastering Chapter 10 Activities, Ch. 7 Muscles A&P

View Set