Reasons to use Replacement
There are a number of reasons to use replacement of methods.
- The method in the parent class is abstract, it must be replaced.
- The method in the parent class is a default method, not appropriate for
all situations.
- The method in the parent can be more efficiently executed in the child.
We will give examples of the latter two.
Intro OOP, Chapter 16, Slide 08