Reasons to use Replacement
There are a number of reasons to use replacement of methods.
We will give examples of the latter two.
- 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
- The method in the parent can be more efficiently executed in the child.
Intro OOP, Chapter 16, Slide 08