...

/

Challenge: Mediator Pattern

Challenge: Mediator Pattern

In this challenge, you have to implement the mediator pattern to solve the given problem.

Problem statement

In this challenge, you need to use the mediator pattern to implement the HR of an office that mediates between the employees (workers and managers) of a company.

You have been given the dummy code for the HR class. You need to define its constructor and the functions:

  • registerEmployee(employee): Registers an employee

  • scheduleRaise(raise, worker, manager): Conveys the raise to the ...