Introduction to Object Oriented Programming, 3rd Ed
Chapter 12
Implications of Substitution
Outline
- Roadmap
- Idealization of the is-a Relationship
- Memory Allocation - Stack and Heap Based
- The Problem with Substitution
- Memory Strategies
- Minimum Static Space Allocation
- Assigning a Larger Value to a Smaller Box
- The Slicing Problem
- Rules for Member Function Binding in C++
- Illustration
- Maximum Static Space Allocation
- Dynamic Memory Allocation
- Meaning of Assignment
- Copy Semantics versus Pointer Semantics
- Problems with Pointer Semantics
- An Old Joke Concerning Equality
- Equality and Identity
- Paradoxes of Equality, Part 1
- Paradoxes of Equality, Part 2
- Paradoxes of Equality, Part 3
- Chapter Summary
Other Material