.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Articles >> C# >> Post New Resource Bookmark and Share   

 Subscribe to Articles

Access modifiers in C#

Posted By:Ramesh P       Posted Date: October 19, 2010    Points: 15    Category: C#    URL: http://www.dotnetspark.com  

This article helps to understand about different accesss modifiers in c#.
 

There are five level of access modifiers. They are,

Private : Only members of class have access.

Protected : All members in current class and in derived classes can access the variables.

Internal(Friend in vb.net) : Only members in current project have access to  the elements.

Protected Internal : 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.
 Subscribe to Articles

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend