interviews.dotnetthread.com

↑ Grab this Headline Animator

Thursday, June 26, 2008

Different Member Access modifiers and thier scope?

Public-A public class is accessible without restriction
Private-They are accessible only from code in the class
Protected-A protected member is accessible in the type in which it is defined and in types derived from that type

Internal-Internal access means the member is accessible to other types that are defined in the same assembly

Protected Internal-You can combine the protected and internal keywords to provide member access that is a combination of the two

Submit this story to DotNetKicks

No comments:

Post a Comment

Post your comments/questions/feedback for this Article.

 

Latest Articles