The classes in a namespace are internal, by default. However, you can explicitly declare them as public only and not as private, protected, or protected internal. The nested classes can be declared as private, protected, or protected internal.
Liked By
Write Answer
Can you declare a private class in a namespace?
Join MindStick Community
You have need login or register for voting of answers or question.
Sumit Kesarwani
04-Sep-2014The classes in a namespace are internal, by default. However, you can explicitly declare them as public only and not as private, protected, or protected internal. The nested classes can be declared as private, protected, or protected internal.