Beispiel #1
0
        public static void DoSomethingWithAnEmployee(IEmployee employee)
        {
            Console.WriteLine(employee.Name);

            Console.WriteLine(employee.Cnp);

            Console.WriteLine(employee.CalculateSalary());
        }
Beispiel #2
0
 public void EmployeeCalculateSalary()
 {
     _employee.CalculateSalary();
 }