Access modifiers help to restrict the scope of a class, variable, constructor, method or data.

Four types of access modifiers are available:

  • Default
  • Private
  • Protected
  • Public
BY Best Interview Question ON 13 Jan 2019