Replace Type Code with Subclasses

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

Replace the type code with subclasses.

For more information see page 223 of Refactoring

| Refactoring Home | | Alphabetical List |