Question: Please write answers very clear, thanks Write a class called Car that contains instance data that represents the make, model, and year of the car.
Write a class called Car that contains instance data that represents the make, model, and year of the car. Define the Car constructor to initialize these values. Include getter and setter methods for all instance data, and a toString method that retums a one-ine description of the car. Add a method called isAntique that returns a boolean indicating if the car is an antique (f iti more thany 45 years old). Create a driver class called CarTest, whose main method instantiates and updates several Car objects
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
