Identifying a flying object (enumeration example)

The example contains declaring a new enumeration type, declaring an enum type variable, using enums in a switch statement, passing an enum to a function as well as a function returning an enum value.