A tour of Access Modifiers in C#

Access modifiers are keywords, used to specify the declared accessibility of a member or a type.

The following five accessibility levels can be specified using the access modifiers:
  • public : Not restricted.
  • protected : Limited to the containing class or types derived from the containing class.
  • Internal : Limited to the current assembly.
  • private : Limited to the containing type.

Accessing Methods from a different Assembly

Assessing Methods from the Same Assembly

Accessing Methods from the same assembly but from an inherited Class

Accessing Methods from a Class


The override modifier is required to extend or modify the abstract or the virtual implementation of an inherited method, property, indexer, or event.