Chapter 11 C++ Class Inheritance

Ace your homework & exams now with Quizwiz!

derived

A _______ class can redefine the member functions of a base class, but this redefinition applies only to the objects of the derived class.

heading

A call to a base class's constructor (with parameters) is specified in the _______ of the definition of the derived class's constructor.

Pro-tip when it comes to class inheritance

An easy way to identify classes, objects, and operations is to describe the problem in English and then identify all of the nouns and verbs. Choose your classes (objects) from the list of nouns and your operations from the list of verbs.

specified

If in the heading of the definition of a derived class's constructor, no call to a constructor (with parameters) of a base class is _________, then during the derived class's object declaration and initialization, the default constructor (if any) of the base class executes.

composition (aggregation)

In __________________________, a member of a class is an object of another class

multiple

In a ________ inheritance, a derived class is derived from more than one base class.

base

In a single inheritance, the derived class is derived from only one existing class called the ____ class.

heading

In composition (aggregation), a call to the constructor of the member objects is specified in the ________ of the definition of the class's constructor.

is-a

Inheritance is an "____" relation.

cannot

The private members of a base class are private to the base class. The derived class ______ directly access them.

public,private

The public members of a base class can be inherited either as ______ or ______ by the derived class.

encapsulation, inheritance, polymorphism

The three basic principles of OOD are ___________________, _______________, and ____________________.

first

When initializing the object of a derived class, the constructor of the base class is executed _____.

Inheritance, composition

___________ and __________ (aggregation) are meaningful ways to relate two or more classes.

Composition (aggregation)

is a "has-a" relation.


Related study sets

PSYCH CHAPTER 5 PRE AND POST TEST QUESTIONS AND NCLEX

View Set

3rd grade SCIENCE chapter 2 - lesson 1- "How are animals grouped"

View Set

McGraw-Hill Connect Anatomical Terms

View Set

Chapter 46: Management of Patients With Gastric and Duodenal Disorders

View Set

Georgia Real Estate - Section 15 Unit 3

View Set

Lithium side effects and signs of toxicity

View Set