Following are the five levels of access modifiers :-
√ Private : Only members of class have access.
√ Protected :-All members in current class and in derived classes can access the
variables.
√ Friend (internal in C#) :- Only members in current project have access to the
elements.
√ Protected friend (protected internal in C#) :- All members in current project
and all members in derived class can access the variables.
√ Public :- All members have access in all classes and projects.
This blog is for .NET and related web technology, where you will find some really good and time saving answers which can help you to make your fundaas clear.
Monday, February 13, 2012
What are the different accessibility levels defined in .NET ?
Labels:
Accessifier,
Asp.net,
C#
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment