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