Replace Type Code with Subclasses

You have an immutable type code that affects the behavior of a class.

Replace the type code with subclasses.

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