Given the interface below:
public interface Records
{
public void setRecords (String First, String Last, Address home, int m, int day, int year);
public String getBirthDay();
}
Write a class called Patient which implements Records interface and uses both methods. Write both methods as they pertain to variables inside the class. Given the following conditions
- Please include the following private variables:
String Patient First_Name; String Patient_LastName; Patient_Address address, Int BirthMonth, Int Birth_date; int Birth_year.
- Please assume that you are using import the address class from textbook pg 307 to 308; listing 7.7.
- Please include only methods listed in the above interface. Any other methods will be ignored.
- Please use only variable listed here.