Introduction to OOP: Chapter 11: Replacement and Refinement [next] [previous] [audio] [real] [text]


Using refinement, the method in the parent class and the method in the child class are merged together to form new behavior.

Parent class method is always executed.

Users are guaranteed of at least the behavior of the parent class.

Performed automatically in some languages (Simula, Beta), in other languages performed by directly invoking the parent method from within the child method.

Intro OOP, Chapter 11, Slide 15