Introduction to OOP: Chapter 11: Replacement and Refinement
Replacement in Object Pascal
Replacement in Object Pascal occurs if
- the method name is the same as in the parent class (including case).
- The argument order, names and types exactly match that of the parent class.
- the description of the method in the child class is followed by the keyword
Intro OOP, Chapter 11, Slide 11