Question: Programming Activity Description: You will need to do two .java files 1. Car.java 2. CarTest.java Car.java is a class that represents a Car. The class

 Programming Activity Description: You will need to do two .java files

1. Car.java 2. CarTest.java Car.java is a class that represents a Car.

Programming Activity Description: You will need to do two .java files 1. Car.java 2. CarTest.java Car.java is a class that represents a Car. The class uses a public access modifier so that any application can use this class. The Car class shows the following attributes 1. The car's make (private) The car's model (private) The car's year (private) Class Car also contains Public Methods for set and get make, model and year Clients of the Car class will be able to access or change the values of the instance variables directly. The clients of the class will need to use methods of the class to access or change any of the instance variables The methods included in the class are: Set and get the car's make Set and get the car's model Set and get the car's year 2. CarTest.java - used to test the Car class

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 Databases Questions!