Replace Type Code with State/Strategy

You have a type code that affects the behavior of a class, but you cannot use subclassing.

Replace the type code with a state object.

image/svg+xml Employee ENGINEER: intSALESMAN: inttype: int Employee EmployeeType Employee Employee 1