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.