- A user-defined data type populated by a set of constants.
- Variables of the user-defined data type may only have values equal to one of the constants in the data type definition.
- public enum Day {
Sun, Mon, Tues, Wed, Thur, Fri, Sat
}
- Day sabbath = Sun (CORRECT)
- Day sabbath = Frank (INCORRECT)