C# access modifiers’ scope

  • public means that anyone can access it

  • private means that only other memebers can access it

  • protected means public to subclasses, private to everyone else

  • internal means public only to other classes in an assembly

  • sealed says that this class can’t be subclassed

Add comment