a. Draw the UML Diagram for the project;details matter!
This lab consists of the following files:
- Hospital.java (driver)
- HospitalEmployee.java (super class)
- Doctor.java (subclass of HospitalEmployee)
- Nurse.java (subclass of HospitalEmployee)
// Doctor
public class Doctor extends HospitalEmployee
{
protected String specialty;
protected String insurer;
protected double salary;
public Doctor (String name, String SSN, int dep, String special,String ins)
{
super (name, SSN, dep);
specialty = special;
insurer = ins;
salary = 2345.67;
}
/**
* specific to each HospitalEmployee
* @return
*/
protected void issuePayCheck() {
netPay = salary;
System.out.println(“————————————————-“);
System.out.println ( “Staff Physician”);
System.out.println(” Name: ” + getName() + “tID ” + ssn);
System.out.println(“nnAmount electronically deposited: $” +netPay);
System.out.println(“————————————————-“);
}
//—————————————————————–
// Sets this doctor’s specialty.
//—————————————————————–
public void setSpecialty (String special)
{
specialty = special;
}
//—————————————————————–
// Returns this doctor’s specialty.
//—————————————————————–
public String getSpecialty()
{
return specialty;
}
//—————————————————————–
// Sets this doctor’s