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

w___ww__.__j_a__v_a_2___s.__c__o_m__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.