Recently I Attended an interview. This question was asked.
This is the scenario.
We have two type of employees. Regular and contract employee. Regular employees will be paid on a fixed basis at the end of the month. Contract employees will be paid weekly based on the number of hours they worked.
Managers will be assigned to these employees for supervision. A manager may have regular and contract employees under him.
This application will calculate the payroll for these employees.
They asked me to come up with the class design for this situation.
What answer is the interviewer expecting from me?. Pointers in this direction will be highly appreciated.
class design
so they expect to see how would you design classes relationship for this 'system'. – Asset