C# Programming - Enumerations - Discussion

Discussion Forum : Enumerations - General Questions (Q.No. 12)
12.
Which of the following statements are correct about enum used in C#.NET?
  1. Every enum is derived from an Object class.
  2. Every enum is a value type.
  3. There does not exist a way to print an element of an enum as a string.
  4. Every enum is a reference type.
  5. The default underlying datatype of an enum is int.
1, 2, 5
1, 4
3, 5
2, 3, 4
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
1 comments Page 1 of 1.

K2u2007 said:   1 decade ago
One other point: all enumerations implicitly inherit System.Enum, which inherits System.ValueType, which inherits object.

A key point to understand about an enumeration is that each of the symbols stands for an integer value.

Post your comments here:

Your comments will be displayed after verification.