«
^
»
9.5 Providing fields and methods in an enum type
An enum declaration can also supply fields and methods.
These can be used on values of the enum type.
Above the enum declaration was declared inside a class declaration.
When enum declarations become more complicated, they are best stored in a separate file.