Access Modifiers

-> Are keywords used to specify the declared accessibility of a member or a type.
Public, protected, internal and private

Public               – 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.
Protected Internal – Access is limited to the current assembly or types derived from the containing class.
Private             – Access is limited to the containing type.

Leave a Reply

Your email address will not be published. Required fields are marked *