Ch 15

Ace your homework & exams now with Quizwiz!

None of these

Arguments are passed to the base class destructor function by the ________ class ________ function

Derived class and child class

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

Car

In the following statement: class Car : protected Vehicle _______ is the derived class.

vehicle

In the following statement: class car : public vehicle _______ is the base class

Member functions

Polymorphism is when ________ in a class hierarchy perform differently, depending upon which object performs the call.

Private members

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

Base, derived

The ________ constructor is called before the ________ constructor.

Derived, base

The ________ destructor is called before the ________ destructor.

private, public, and protected

The base class access specification determines how ________ members in the base class may be accessed by derived classes

Access specification

The base class's ________ affects the way its members are inherited by the derived class

None of these

The following statement: class Car : private Vehicle allows the ________ members of the Car class to access ________ members of the Vehicle class

Polymorphism

The term ________ means the ability to take many forms

False

True/False: A derived class may not have any classes derived from it.

True

True/False: In C++ 11, if a derived class attempts to override a final member function, the compiler

False

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

True

True/False: More than one class may be derived from a base class

True

True/False: Pointers to a base class may be assigned the address of a derived class object

May

When you derive a class from an existing class, you ________ add new data and functions

Pointers

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

Virtual

_______ functions are dynamically bound by the compiler.

Inheritance

_______ is commonly used to extend a class, or to give it additional capabilities

Private

_______ members of a base class are never accessible to a derived class


Related study sets

Chapter 19 Analysis and Monitoring of Gas Exchange

View Set

Module 8 - Energy Balance, Weight Management, & Eating Disorders

View Set

Property: Basics, Possession and Personal Property

View Set

*N3632 FOUNDATIONS | NCLEX REVIEW

View Set

Pulmonary Radiology John Yasmer, DO

View Set

Buyer Behavior Exam 2 (Quizzes 4-5)

View Set