public override void Print(Employee e) { PrintLine(); PrintSalary(e); PrintName(e); PrintLine(); }
public void AddEmployee(Employee employee) { _employees.Add(employee); }
public Add(Employee employee) { _employees.Add(employee) }
protected void PrintSalary(Employee e) { Console.WriteLine("Salary: {0}", e.Salary); }
protected void PrintName(Employee e) { Console.WriteLine("Name: {0}", e.Name); }
public abstract void Print(Employee e);