Enumeration

Enumeration

Enumeration is a way of defining your own type that can accept a predefined set of values identified by names. For example, you want a variable that can only store directions…