Polymorphism (Inheritance with Dynamic Binding)

8/7/98


Click here to start


Table of Contents

Polymorphism (Inheritance with Dynamic Binding)

Problem: Multiple Sub-Types

Problem: Only Derived Type Knows Real Implementation

Problem: Clients Must Know Object's Type when Statically Bound

Solution: Use Late Binding to Allow Objects to Determine Impl.

Solution: Base Class Defines Abstraction & Derived Supplies Impl.

Key Points

Key Points

"Inheritance of Type"

"Inheritance of Class"

Dynamic vs. Static Typing

Container Problem with Static Typing

Message Binding

Pointers To Functions

An Inside Look at a Member Function Pointer

C++ Class Structure Mapped to C Implementation

C++ Call Mapped to C

Author: Jim Stafford

Email: jim.stafford@apl.jhu.edu

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