Question: Question 1 Which method XXX allows a array of Vehicle objects to invoke the polymorphic method drive() in Plane and Boat? public class Vehicle
Question 1 Which method XXX allows a array of Vehicle objects to invoke the polymorphic method drive() in Plane and Boat? public class Vehicle { } public class Plane extends Vehicle { @Override public void drive() {...} } public class Boat extends Vehicle { @Override public void drive(){...} } O public void drive(int miles) {...} O private void drive() {...} O public void drive() {...} Opublic void super.drive() {...} 55 pts
Step by Step Solution
3.37 Rating (166 Votes )
There are 3 Steps involved in it
The detailed answer for the above question is provided below public void driveint miles This method ... View full answer
Get step-by-step solutions from verified subject matter experts
