This lab consists ofthe following files:
- Hospital.java (driver)
- HospitalEmployee.java (super class)
- Doctor.java (subclass of HospitalEmployee)
- Nurse.java (subclass of HospitalEmployee)
Report for a – d:
- where in the code you get an error (list the methodname) and
- what type of error; compiling orrun-time.
- Explain what you think caused errors or changes inoutput (based on the concepts we studied in class).
a. do 1 and 2
1. (change HospitalEmployee.java )change the Employee issuePayCheck( ) method to beprivate in class HospitalEmployee
2. (hospital.java) Add the following code as the last lines in themain():
HospitalEmployee[] he = newHospitalEmployee[2];
he[0] =Lyons;
he[1] =Nick;
for(int i = 0; i
OR
OR