Enumeration and Switch statement

The following C++ code describes an enumeration user defined type together with a switch statement