C#.NET — Can an enum be declared inside class, struct, namespace, or interface?

C# Programming Enumerations Difficulty: Easy
Choose an option
  • A
    True
  • B
    False

Answer

Correct Answer: True

Explanation

Introduction / Context:Enums are versatile types and can be declared at multiple levels.

Fact:C# allows enums inside classes, structs, namespaces, and interfaces.

Final Answer:True

Discussion & Comments
No comments yet. Be the first to comment!
More Questions from Enumerations
Join Discussion