Home > DeveloperSection > Interviews > Can you declare a private class in a namespace?

Posted on    September-04-2014 11:35 PM

 C# C# 
Ratings:
 1 Answer(s)
  752  View(s)
Rate this:

Sumit Kesarwani

Total Post:782

Points:3910
Posted on    September-04-2014 12:00 AM

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.


Don't want to miss updates? Please click the below button!

Follow MindStick