Question: java create a domain class called CoronaVaccine, which will contain the following attributes: 1.) first name of patient 2.) last name of patient 3.) name

java

create a domain class called CoronaVaccine, which will contain the following attributes:

1.) first name of patient 2.) last name of patient 3.) name of vaccine manufacturer 4.) number of doses 5.) location of first injection 6.) date of first injection (mm/dd/yyyy) 7.) location of second injection 8.) date of second injection (mm/dd/yyyy)

Note that you will also code the constructor, getters, setters and toString methods of the CoronaVaccine class.

create a driver class called CountyVaccination, which will contain the following methods:

1.) main method, which calls the following 2 methods: a.) vaccinatePeople() b.) reportVaccinations() 2.) In the vaccinatePeople() method, you will create 3 CoronaVaccine objects, asking the user to give you the information for each field (attribute) in the object.

3.) In the reportVaccinations() method, you will print each of the 3 CoronaVaccine objects that were created in the vaccinatePeople() method. Note: You will have to create 3 global variables so that you can access these 3 objects from any method in the driver class. The 3 global variables should be named:

CoronaVaccine record1; CoronaVaccine record2; CoronaVaccine record3;

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!