I need help to set up a code according to the following specifications...
To accomplish these objectives, it is required the implementation and the utilization of a class Car and of a class CarTest.
Project Specification
2.1 Class Car specification
The following self describing instance variables should be defined for the class Car:
make (of type String)
model (of type String)
year (of type integer)
price (of type integer)
The class Car should define the following methods:
four get type methods (getMake, getModel, getYear, getPrice), each returning the value of the corresponding instance variable.
setPrice for setting a new price for the car. The new price is specified as method parameter.
print for displaying car's specific data. When the print method is invoked, the make, model, year and price values should be displayed on the screen, each on a separate line.
The class Car also defines a default constructor and a constructor with parameters.
The default constructor builds Car objects with the following values of their instance variables: "Ford" for make, "Mondeo" for model, 2009 for year and 19,900 dollars for price.
The constructor with parameters builds and initializes a car object based on constructor parameters.