Access Control

Default

  • Class members (properties, methods, etc.):

    • Default: private

    • If you do not specify an access modifier, the member is private and accessible only within the class itself.

  • Top-level classes and structs:

    • Default: internal

    • If you do not specify a modifier, the class or struct is accessible only within the same assembly  (usually the same project in .NET).

Modifiers

abstract

static

  • "Static variables are used to pass information across different instances of the same class, not across different classes".