“The enum keyword is used to declare an enumeration , a distinct type that consists of a set of named constants called the enumerator list. … However, an enum can also be nested within a class or struct. By default, the first enumerator has the value 0 and the value of each successive enumerator is increased by 1.