Which of the following statements concerning an enum in C#.NET is correct?
A. An enum variable can be defined within a class or a namespace.
B. An enum variable cannot have a private access modifier.
C. An enum variable cannot have a public access modifier.
D. An implicit cast is required to transition from an enum type to an integral type.
Answer:A
Which of the following statements concerning an enum in C#.NET is correct?
A. An enum variable can be defined within a class or a namespace. B. An enum variable cannot have a private access modifier. C. An enum variable cannot have a public access modifier. D. An implicit cast is required to transition from an enum type to an integral type.
Explanation: An enum variable can be defined within a class or a namespace.