Inheritance (with Static Binding)

8/7/98


Click here to start


Table of Contents

Inheritance (with Static Binding)

Example: Similar Abstractions

Example: Sample Code From Similar Abstractions

Example: Sample Code From Similar Abstractions

Example: Using Inheritance to Capture Common Attributes/Behavior

Inheritance Overview

Defining Inheritance in C++

Access in Inheritance

Calling Parent Implementation

Example: Sample Code Using Inheritance

Physical Structuring of Inheritance

Inheritance Constructors

Inheritance Destructors

Inheritance Implementations

Example: Extracting Common Connections

Example: More Sample Code

Physical Structure of Final Inheritance

Using The New Book Object

Benefits of Inheritance

Costs of Inheritance

Reasons to Sub-Class

Modification vs. Sub-Classing

Author: Jim Stafford

Email: jim.stafford@apl.jhu.edu

Home Page: http://www.apl.jhu.edu/~jcstaff