Question: write a java code programming Question 2: Car Class( 50 Points) Create a class called Car that contains data that represents the brand, model, and
Question 2: Car Class( 50 Points) Create a class called Car that contains data that represents the brand, 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 returns a one-line description of the car. Create a test program called CarTest, whose main method instantiates and updates several Car objects. Draw the UML diagram for the class. (It's not mandatory.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
