My intend of writting this blog is to make begainer fammilier with bascis of access Modifier which are used in c# programming. also by considering the importance of Intrview which are mostly asked on access modifier,i have diffrenciated each modifier with each to eaisly understand.
so let us start it with Basics..
What is Access Modifiers ?
"Access Modifiers are keywords in C# which are used to restrict avaibility of object,metho,class and its members into the program or in application".
We can control the scope of the member object of a class using access
specifiers which are used to provide security of applications.
their are following types of access modifiers in C#
- Public
- Private
- Protected
- Internal
- Protected internal
Public
Public is the most commonaly used access specifier in C# . It can be access from
anywhere, that means there is no restriction on accessibility. The
scope of the accessibility is inside class as well as outside. The type
or member can be accessed by any other code in the same assembly or
another assembly that references it.
some key points
the members of public access specifier can be accessed
- within the class in which they are declared.
- within the derived classes of that class available within the same assembly.
- Outside the class within the same assembly.
- within the derived classes of that class available outside the assembly.
- Outside the class outside the assembly.
Private
The scope of the accessibility is limited only inside the classes or
struct in which they are declared. The private members cannot be
accessed outside the class and it is the least permissive access level.
some key points
the members of Private access specifier can be accessed

Varshini KarthikPosted May 4, 2017, 1:55 AM
Default access modifier for class ,struct, Interface, Enum, Delegate is Internal. Default access modifier for class and struct members is private. Which Statement is true..
SubashPosted Sep 15, 2016, 8:47 AM
Nice