enumitüüpi
An enum type, short for enumeration type, is a distinct data type that consists of a set of named values, also known as enumerators. These enumerators represent discrete, symbolic constants. In programming, enum types provide a way to define a variable that can only take on one of a predefined set of values, making the code more readable and less prone to errors compared to using raw integers or strings for such purposes.
When an enum type is declared, a specific name is given to the type itself, and then
The underlying representation of enum values is often an integer, though this is typically an implementation