Monday, 3 August 2015

Access specifier in c#.net

Types of  access specifier in c#.net

1)Private=private access specifier is a specifier which accessible
 within class.This access specifier is so secure.this is most
commonly used access specifier.

2)protected=Accessible within namespace or assembly.It only occurs
in parent child relationship(inheritance).

3)public=Accessible anywhere.

4)Internal=It is accessible anywhere.By default C# contain
internal access specifier.

5)Partial=It is used to class or interfaces into or more than
two parts.

No comments:

Post a Comment