Access modifiers are keywords used to specify the declared accessibility of a member or a type. In .net we have four type of access modifiers:
- public - Available to all and access is not restricted.
- protected - Access is limited to the containing class or types derived from the containing class.
- internal - Access is limited to the current assembly
- private - Access is limited to the containing type.