Question: Answer all the given programs 1,2,3 in a single file with using java programming and help me to complete my homework code should contain all
Answer all the given programs 1,2,3 in a single file with using java programming and help me to complete my homework
code should contain all the 3 patient,doctor and billing classes in whole.
1. Define a Patient Class 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 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 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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
