User:Jayprakash12345/sandbox 2

Enumerations
Enumerated types are named values representing integer values.

variables are initialized by default to zero. They can be assigned or initialized to the named values defined by the enumeration type.

type variables are integer values. Addition and subtraction between variables of the same type is allowed without any specific cast but multiplication and division is somewhat more risky and requires an explicit cast. Casts are also required for converting variables to and from integer types. However, the cast will not throw an exception if the value is not specified by the type definition.

See also
 * Enumeration (programming)