Access Modifiers in C#.net


Access modifiers are keywords used to specify the declared accessibility of a member or a type.


Public
Access is not restricted.


Protected
Access is limited to the containing class or types derived from the containing class.

Internal
Access is limited to the current assembly.

Protected internal
Access is limited to the current assembly or types derived from the containing class.

Private:Access is limited to the containing type.
Access Modifiers in C#.net Access Modifiers in C#.net Reviewed by NEERAJ SRIVASTAVA on 9:27:00 AM Rating: 5

No comments:

Powered by Blogger.