C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




108) How many types of Access Modifiers? Plz.. Explian?


Posted Date: 10 Jun 2007      Total Responses: 2

Posted By: Swapna        Member Level: Gold     Points: 2


108) How many types of Access Modifiers? Plz.. Explian?



Responses

Author: Durga Prasad    11 Jun 2007Member Level: SilverRating:     Points: 2
v Private : Only members of class have access.
v Protected :-All members in current class and in derived classes can access the
variables.
v Friend (internal in C#) :- Only members in current project have access to the
elements.
v Protected friend (protected internal in C#) :- All members in current project
and all members in derived class can access the variables.
v Public :- All members have access in all classes and projects.


Author: asdf    14 Aug 2008Member Level: SilverRating:     Points: 0
• Access Modifiers
Making the range of implementation.
Like methods available for
Public - other classes with in the namespace.
Private – only for the current class.
Protected – only for avail “X” class which is inherit the current class.
Friend (internal) – avail for project.
Protected friend(internal) – avail for new “X” project which is inherit the
current project.





Post Reply
You must Sign In to post a response.
Next : 106) What is the diff between Shadowing and Overriding?
Previous : 109)what is the diff between Class and Structure?
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

audio conferencing services

Contact Us    Privacy Policy    Terms Of Use