Given the following class hierarchy, identify whether the me…
Given the following class hierarchy, identify whether the method eat is overloaded, overridden, or neither by the subclass: public class Animal { public void eat(String food) { /* implemented */ } } public class Dog extends Animal{ public void eat(String food, int quantity) { /* implemented */ } }
Read Details