Use Java!!
Posted: Tue Jul 12, 2022 8:16 am
Use Java!!
Create a class named vehicle. The class has the following members: 1. Private data elements: a. licenseNumber b. ownerName c. ownerlicenseNumber d. registration Number int 2. Public data members: int char int 60 a. A default constructor. b. A primary constructor with all the data elements passed as arguments. c. Method setVehicleData that accepts no parameters and returns no values. This method accepts input from the user for the private data elements. d. Method printVehicleData that accepts no parameters and returns no values. This method prints the private data elements. e. Instantiate four object's named vehicleTest1, vehicleTest2, vehicleTest3 and vehicle Test4 of the class vehicle. f. Accept values for the object vehicleTest using the method setVehicle Data. Print values from the object vehicleTest using the method printVehicleData.
Create a class named vehicle. The class has the following members: 1. Private data elements: a. licenseNumber b. ownerName c. ownerlicenseNumber d. registration Number int 2. Public data members: int char int 60 a. A default constructor. b. A primary constructor with all the data elements passed as arguments. c. Method setVehicleData that accepts no parameters and returns no values. This method accepts input from the user for the private data elements. d. Method printVehicleData that accepts no parameters and returns no values. This method prints the private data elements. e. Instantiate four object's named vehicleTest1, vehicleTest2, vehicleTest3 and vehicle Test4 of the class vehicle. f. Accept values for the object vehicleTest using the method setVehicle Data. Print values from the object vehicleTest using the method printVehicleData.