string GetCommonEmployeeInfo(CommonEmployee employee) { string basicInfo = GetBasicInfo(employee); return(basicInfo + $"\t工作:{employee.Job}"); }
public void Visit(CommonEmployee employee) { Console.WriteLine(GetCommonEmployeeInfo(employee)); }