Access specifiers(or access modifiers) are used to set the accessibility of classes, methods and variables.
Types of modifiers
- Protected Internal
Can be accessible outside the class (anywhere) in the same assembly or another assembly.
Accessible only in the same class.
Accessible in the same class or in a derived class of that class.
Accessible anywhere in the code with in the assembly. But not accessible in another assembly.
Accessible anywhere in the code with in the assembly. And accessible only in derived class in another assembly.