Introduction to Object Oriented Programming, 3rd Ed

Timothy A. Budd

Chapter 12

Implications of Substitution

Outline

  1. Roadmap
  2. Idealization of the is-a Relationship
  3. Memory Allocation - Stack and Heap Based
  4. The Problem with Substitution
  5. Memory Strategies
    1. Minimum Static Space Allocation
      1. Assigning a Larger Value to a Smaller Box
      2. The Slicing Problem
      3. Rules for Member Function Binding in C++
      4. Illustration
    2. Maximum Static Space Allocation
    3. Dynamic Memory Allocation
  6. Meaning of Assignment
    1. Copy Semantics versus Pointer Semantics
    2. Problems with Pointer Semantics
  7. An Old Joke Concerning Equality
    1. Equality and Identity
    2. Paradoxes of Equality, Part 1
    3. Paradoxes of Equality, Part 2
    4. Paradoxes of Equality, Part 3
  8. Chapter Summary

Other Material

Intro OOP, Chapter 12, Outline