[first slide]

Introduction to Object Oriented Programming

Timothy A. Budd

Chapter 11

Replacement and Refinement

Outline

  1. Adding versus Replacing or Refining
  2. Two Models - Replacement and Refinement
    1. Replacement Example - sqrt in Smalltalk
    2. Preserving is-a
    3. Documenting Replacement or Refinement
    4. Replacement in C++ - issues
    5. Replacement in C++ - class descriptions
    6. Replacement in C++ - methods
    7. Replacement in Java
    8. Replacement in Object Pascal
      1. Example Declaration in Object Pascal
      2. Methods have no indication in Object Pascal
    9. Replacement in Objective-C and Smalltalk
  3. Refinement
    1. Refinement in Simula and Beta
    2. Refinement in C++
      1. Constructors always do refinement
    3. Refinement in Object Pascal
    4. Refinement in Smalltalk, Java and Objective-C

Other Material

Intro OOP, Chapter 11, Slide 1