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?
- Every enum is derived from an Object class.
- Every enum is a value type.
- There does not exist a way to print an element of an enum as a string.
- Every enum is a reference type.
- The default underlying datatype of an enum is int.
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.
A key point to understand about an enumeration is that each of the symbols stands for an integer value.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers