[first slide]
Introduction to Object Oriented Programming
Chapter 21
Implementation
Outline
- Two General Approaches to Implementation
- Translating Addresses into Offsets
- Objects as Extensions of Records
- Virtual Method Tables
- Two Balls Sharing the Same Table
- Building A Virtual Table for a Subclass
- Virtual Table for classes Wall and Ball
- Name Encoding
- Dispatch Tables
- An Object and its Dispatch Table
- Method Cache
- The Messaging Function checking the Cache
Other Material