This is what I have so far. I need the doctor object and a billing class file.
public elass Person [) 7 usages private String nane; 7 usegos private String address; 7 usages private String phoneNumber; II Constructor 2 usages public Person(String nase, String address, String phoneluaber) f this. nane = nane; this. address = address; this.phoneNumber = phoneNuaber; b II Getters and setters public string getMane() 1 return nane; 3 public void sotlane(string nose) f this.nane = nase; 3 public string getAddress ( ) \{ return addross; 1 public void setaddress(String address) t 3 this, address = address; public string getPhoneNuaber () \& return phonelluaber; 1 public vold setphonewunber(String phonelluaber) t this. phoneNunber = phonelunber; sre) FinalTokehtome (C) Person honeNumberdava public void setAddress(String address) f this. address = address; 3 public string getPhoneNunber() \{ return phonelumber; 1 public void setPhoneNunber(String phoneNumber) \& this. phonellunber = phonellumber; \& II Method to write the output 1 override public void writeoutput() 1 Systea.out.printin("NanCY - + nane); Systen. out.printin ("Address: " + address); Systen.out.printin("Phone number: " + phonelluaber); II Hethod to check if two Person objects are equal 1 usage public boolean equals(Person other) \& return nane.equals(other, name) c e. address.eguals(other, address) es phoneNumber, equats(other, phoneNuaber); b II Hethod to generate a string representation of the Person object public string tostring 0 f return name +","+ address +","+ phoneNunber; lackage FinatTakeHone; ublic ass Patient extends Person implenents Conparablecpatient>1 II Private nenber variables 7 usages private String insuranceConpany; 7 usages private string poticykumber; I/ Constructor public Patient(String nane, String address, String phoneNumber, String insuranceConpany, String policylluaber) f super(nase, address, phoneNuaber); this. InsuranceConpany = insuranceConpeny; this. policyNunber = poticyliumber; 1 I/ Default constructor public Patient() t super( name: "o, addross: "", phonoNumber: "n); insuranceCompany =; 1 policyNumber = "in; II Getters and setters pubuic string getinsuranceConpany() t return insuranceConpany; 1 pubLe void setInsuranceConpany(5tring insuranceConpany) f this. insuranceConpany = insuranceCompany; b public string getPolicyNunber() \& return policyNuaber; \} public void setpolicyNunber(String poticyNumber) f this. poticyNuaber = poticylunber; public string gotInsuranceConpany 0 return insuranceCompany; 1. Define a Patient Class (30%) 1. Child Class of Person class that we did in class 2. Variables for Insurance Company, and Policy number 3. 2 Constructors (default and a parameterized) 4. Well Encapsulated 5. WriteOutput, equals, toString, compareTo(make sure it implements the appropriate interface for this) methods. 2. Create a Doctor Object ( 30%) 1. Child Class of Person class that we did in class 2. Has variables for Speciality and copay 3. 2 Constructors (default and a parameterized) 4. Well Encapsulated 5. WriteOutput, equals, toString, compareTo(make sure it implements the appropriate interface for this) methods. 3. Define a Billing Class (40%) 1. Has variable for a patient object 2. Has variable for Doctor object 3. Parameterized constructor only 4. Setters and getters: 5. printBill method that will print the details for a bill addressed to the patient from the doctor