Question: Motorcycle.java will extend the vehicle class. No additional datafields. 2 OVERRIDE methods. getweight ( ) setweight ( int in ) - no weight check for

Motorcycle.java will extend the vehicle class.
No additional datafields.
2 OVERRIDE methods.
getweight()
setweight(int in)- no weight check for this vehicle, just take the value in and
store it. Why? Remember we said a vehicle(we assumed a base of a Car
couldnt be less than 1000lbs, well since we are making different vehicle classes a
motorcycle is rarely over 1000lbs. Most are between 200-500lbs

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!