Exploring Enums: The Wait Is Finally Over @ JDJ: "Exploring Enums: The Wait Is Finally Over
By: Ajith Kallambella
Published November 30, 2004
To enumerate means to itemize or to list. In the world of programming, enumerations, enums for short, are used to represent a finite set of values (constants) that a variable can attain. In other words, it defines the domain of a type. For instance, different states of a fan switch - off, low, medium, and high - make up an enumeration."