USE JAVA!!
Create a class named vehicle. The class has the following members:
Private data elements:
licenseNumber int
ownerName char 60
ownerlicenseNumber int
registrationNumber int
Public data members:
A default constructor.
A primary constructor with all the data elements passed as arguments.
Method setVehicleData that accepts no parameters and returns no values. This method accepts input from the user for the private data elements.
Method printVehicleData that accepts no parameters and returns no values. This method prints the private data elements.
Instantiate two objects named vehicleTest1, and vehicleTest2 of the class
Accept values for the object vehicleTest using the method setVehicleData.
Print values from the object vehicleTest using the method printVehicleData.