In Java.
Create an Automobile class for a dealership. Include fields foran ID number, make, model, color, year, vin number, miles pergallon, and speed. Include get and set methods for each field.
Do not allow the ID to be negative or more than 9999; if it is,set the ID to 0.
Do not allow the year to be earlier than 2000 or later than2017; if it is, set the year to 0. Do not allow the miles pergallon to be less than 10 or more than 60; if it is, set the milesper gallon to 0.
Car speed should be initialized as 0. Include
PayPal Gateway not configured
PayPal Gateway not configured