Given the following class hierarchy, identify whether the me…
Given the following class hierarchy, identify whether the method price is overloaded, overridden, or neither by the subclass: public class Drink { public void price(int p, String n) { /* implemented */ } } public class Pepsi extends Drink { public void price(int price, String name) { /* implemented */ } }
Read Details