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

Replacement in Object Pascal

Replacement in Object Pascal occurs if

1.
the method name is the same as in the parent class (including case).

2.
The argument order, names and types exactly match that of the parent class.

3.
the description of the method in the child class is followed by the keyword override.
Intro OOP, Chapter 11, Slide 11