Access modifier

C# supports the following access modifiers.

Access modifierMeaning
publicAccessible anywhere;
internalAccessible only within its assembly or friend assemblies;
privateVisible only within its own type;
protectedVisible only within containing type or subclasses
protected internalThe union of protected and internal accessibility

interal is the default for non-nested types.

public is implicit for members of an enum or interface type

private is the default for members of a class or struct

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.