What do we mean by Enum keyword?

 Posted by vishalneeraj-24503 on 8/4/2014 | Category: .NET Framework Interview questions | Views: 395 | Points: 40
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 

Comments or Responses

Login to post response