Access modifiers C#
Access modifiers are keywords used to specify the accessibility of types and type members.
public: The type or member is accessible from any other code.private: The type or member is accessible only within its own class or struct.protected: The type or member is accessible within its own class and by derived class instances.internal: The type or member is accessible within the same assembly, but not from another assembly.protected internal: The type or member is accessible within its own assembly or from derived classes in another assembly. (union ofprotectedandinternal)private protected: The type or member is accessible within its own class and by derived class instances that are in the same assembly.(intersection ofprotectedandinternal)file: The type or member is accessible onlywithin the same source file.