Пример #1
0
        public void GetEmployeeData(int EmployeeTypeId)
        {
            SimpleFactory           a     = new SimpleFactory();
            ISimpleFactoryInterFace iSimp = a.GetEmployee(EmployeeTypeId);

            Console.WriteLine("BONUS : " + iSimp.getBonus().ToString() + " ;PAY " + iSimp.getPay().ToString());
        }
Пример #2
0
        public Employee ApplySalary()
        {
            ISimpleFactoryInterFace manager = this.Create();

            _emp.Bonus  = manager.getBonus();
            _emp.Salary = manager.getPay();
            return(_emp);
        }