private string GetCommonEmployee(CommonEmployee commonEmployee) { string basicInfo = this.GetBasicInfo(commonEmployee); basicInfo += "工作:" + commonEmployee.GetJob() + "\t"; return(basicInfo); }
public void visit(CommonEmployee commonEmployee) { Console.WriteLine(this.GetCommonEmployee(commonEmployee)); }