parisaarbab / employee Goto Github PK
View Code? Open in Web Editor NEWThe Manager class extends the Employee class. It adds a list of subordinate employees and modifies the salary calculation. The manager's salary includes a 5% increase per service year, plus 2% per subordinate. There's an overloaded calculateSalary method with a bonus parameter; if true, it adds 10% of the base salary.