Answer:
The Enum keyword is used to declare an enumeration, a distinct type that consists of a set of named constants called the enumerator list.
Usually it is best to define an Enum directly within a namespace so that all classes in the namespace can access it with equal convenience. However, an Enum can also be nested within a class or struct.
Asked In: Many Interviews |
Alert Moderator