How do you use enums correctly?

You should always use enums when a variable (especially a method parameter) can only take one out of a small set of possible values . Examples would be things like type constants (contract status: “permanent”, “temp”, “apprentice”), or flags (“execute now”, “defer execution”).

Read more