Multiple choice technology programming languages

Can we declare private class in a Namespace?

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Classes declared directly within a namespace cannot be declared as private in .NET. Namespace-level classes can only be public or internal. The Private modifier is only valid for nested class declarations inside another class.