Question: Q 2 Create a child class Bus that will inherit all of the variables and methods of the following Vehicle class. Also create an object
Q Create a child class Bus that will inherit all of the variables and methods of the following Vehicle class. Also create an object of a Bus class and passing "Volvo" as vehicle name, as maxspeed and as mileage per gallon.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
