What is enum?

 Posted by Tripati_tutu on 12/27/2010 | Category: C# Interview questions | Views: 5192 | Points: 40
Answer:

A enum is nothing but a special value type which specifies a group of named numeric constants.

For Example:
public enum cube {Length, Height, Width}


We can use the enum type as
cube len = cube.Length;

bool isLength = (len == cube.Length);


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response