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

Difficulty: Easy

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

More Questions from Enumerations

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion