Given the following class hierarchy, identify whether the me…

Given the following class hierarchy, identify whether the method drive is overloaded, overridden, or neither by the subclass: public class Car{   public void drive(String n, int p) { /* implemented */ } } public class Tesla extends Car{   public void drive(String name, int power) { /* implemented */ } } 

Given the following class hierarchy, identify whether the me…

Given the following class hierarchy, identify whether the method drive is overloaded, overridden, or neither by the subclass: public class Car{   public void drive(String n, int p) { /* implemented */ } } public class Tesla extends Car{   public void drive(String name, int power) { /* implemented */ } } 

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 */ } } 

Given the following class hierarchy, identify whether the me…

Given the following class hierarchy, identify whether the method introduce is overloaded, overridden, or neither by the subclass: public class Person {    public void introduce(String name, int height) { /* implemented */ }}public class Student extends Person {   public void introduce(String name, int height, String major) { /* implemented */ }}