public static string PrintDetails(hseEmployee employee)
 {
     if (employee is Doctor)
     {
         return(employee.ToString() + "\nI can PRESCRIBE for patients!!!");
     }
     else if (employee is Porter)
     {
         return(employee.ToString() + "\nI am a Porter!!!");
     }
     else
     {
         return(employee.ToString());
     }
 }
 public static hseEmployee createEmployee(string type, string name, string eType, int yrsService, double salary)
 {
     if (type == "Porter")
     {
         hseEmployee p = new Porter(name, type, yrsService, salary);
         return(p);
     }
     if (type == "Doctor")
     {
         hseEmployee d = new Doctor(name, type, yrsService, salary);
         return(d);
     }
     if (type == "Employee")
     {
         hseEmployee e = new hseEmployee(name, type, yrsService, salary);
         return(e);
     }
     return(null);
 }