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

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!