What object oriented concept best describes the following example:
There is a Chicken class, a Cat class, a Lion class, and a Horse class, and they all have a eat() method (that does the same). To improve the design, we have created another class called Animal and placed the eat() method there. We made all the other classes inherit from Animal.
|