Example #1
0
 public override void Print(Employee e)
 {
     PrintLine();
     PrintSalary(e);
     PrintName(e);
     PrintLine();
 }
Example #2
0
 public void AddEmployee(Employee employee)
 {
     _employees.Add(employee);
 }
Example #3
0
 public Add(Employee employee)
 {
     _employees.Add(employee)
 }
Example #4
0
 protected void PrintSalary(Employee e)
 {
     Console.WriteLine("Salary: {0}", e.Salary);
 }
Example #5
0
 protected void PrintName(Employee e)
 {
     Console.WriteLine("Name: {0}", e.Name);
 }
Example #6
0
 public abstract void Print(Employee e);