|
Differences from objectsAlthough Enums are built on classes and objects, they do not support all object-related functionality. In particular, Enum cases are forbidden from having state.
The following object functionality is available, and behaves just as it does on any other object:
The
Additionally, enum cases may not be instantiated directly with
|