Question: JAVA: Write a Java class and name it AutoPolicy that represents an auto insurance policy. The class should contain 1- int instance variable accountNumber 2-
JAVA: Write a Java class and name it AutoPolicy that represents an auto insurance policy. The class should contain
1- int instance variable accountNumber
2- String instance variable makeAndModel
3- String instance variable state
4- constructor that initializes the class's instance variables
5- methods setAccountNumber and getAccountNumber
6- methods setMakeAndModel and getMakeAndModel
7- methods setState and getState
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
