Пример #1
0
        public static void DoSomethingWithAnEmployee(IEmployee employee)
        {
            Console.WriteLine(employee.Name);

            Console.WriteLine(employee.Cnp);

            Console.WriteLine(employee.CalculateSalary());
        }
Пример #2
0
 public void EmployeeCalculateSalary()
 {
     _employee.CalculateSalary();
 }