Wednesday, May 30, 2012

Access Modifiers


ACCESS MODIFIERS :
PUBLIC doesn’t have any restrictions. It can be visible to any method of any class.
PRIVATE accessible for only that class.
PROTECTED marked members are accessible only to the methods of that class and its derived classes.
INTERNAL marked members are accessible to that assembly which it belongs to.
PROTECTED INTERNAL marked members are accessible to its assembly and its derived classes of any other assemblies.

No comments:

Post a Comment

Comments

Protected by Copyscape Plagiarism Software