Access modifiers control how information can be accessed. There are four types of access modifiers in C#.

  1. Public
  2. Internal
  3. Protected
  4. Private

Get hands-on with 1200+ tech skills courses.