A special kind of Enum
that inherits from the base Enum class and int
.
Why use this?
You can perform integer operations on it.
Interestingly, since this class represents both an enum and an int
, you can use it to convert a regular int
into your enum class: