Programming Languages C# Objective
Mar 07, 2013

Which statements is true about an enum used in C#.NET?

Choose the correct answer:
A) An implicit cast is needed to convert from enum type to an integral type.
B) An enum variable cannot have a public access modifier.
C) An enum variable cannot have a private access modifier.
D) An enum variable can be defined inside a class or a namespace.
Detailed Explanation

Option D is the right answer.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback