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

Suggest An Answer

No suggestions avaliable!