What is the default access modifier of a class?

 Posted by CGN007 on 5/30/2012 | Category: OOPS Interview questions | Views: 2446 | Points: 40
Answer:

The default access modifier for a class is internal if it's defined within the same namespace. It is private if it's defined within another class.

It can declare members (methods etc) with following access modifiers:
public
internal
private
protected internal


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response