For Java Programming
Write an abstract superclass encapsulating a vehicle: A vehiclehas two attributes: its owner’s name and its number of wheels. Thisclass has two non-abstract subclasses: one encapsulating a bicycle,and the other encapsulating a motorized vehicle. A motorizedvehicle has the following additional attributes: its engine volumedisplacement, in liters; and a method computing and returning ameasure of horsepower which is the number of liters times thenumber of wheels. Write an application class utilizing these twoclasses.
Expert Answer
An answer will be send to you shortly. . . . .