/// <summary> /// /// </summary> /// <param name="input"></param> /// <returns></returns> public string displayEmployeeInfo(string input, bool shouldLog) { string ret = ""; if (tryFindEmployee(input)) { Employee emp = findEmployee(input); switch (emp.GetType().Name) { case "FulltimeEmployee": return(FulltimeEmployee.display((FulltimeEmployee)emp, shouldLog)); //break; case "ParttimeEmployee": return(ParttimeEmployee.display((ParttimeEmployee)emp, shouldLog)); //break; case "ContractEmployee": return(ContractEmployee.display((ContractEmployee)emp, shouldLog)); //break; case "SeasonalEmployee": return(SeasonalEmployee.display((SeasonalEmployee)emp, shouldLog)); //break; default: break; } } return(ret); }