can we declare private class in namespace?

 Posted by Rajni.Shekhar on 4/11/2012 | Category: ASP.NET Interview questions | Views: 1548 | Points: 40

No we can declare private class in namespace, it will give compile time error.


namespace example
private class ex //error

"Error: Elements defined in a namespace cannot be explicitly declared as private, protected, or protected internal"

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response