Question: Let us consider an inheritance relation to model composite states for an Employee class. Use the State pattern to implement the following state-chart for the
Let us consider an inheritance relation to model composite states for an Employee class. Use the State pattern to implement the following state-chart for the Employee class.
EmployeeBehaviour Actve Suspended Boss Subordlnate Active promote Subordinate Boss demote suspend Suspended unsuspend
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
