public static void DoSomethingWithAnEmployee(IEmployee employee) { Console.WriteLine(employee.Name); Console.WriteLine(employee.Cnp); Console.WriteLine(employee.CalculateSalary()); }
public void EmployeeCalculateSalary() { _employee.CalculateSalary(); }