Social Media

Tag Archives for " access control "

Java Access Control

Java access control is pretty simple –

Class Level (including enum) – 2 Types

  • Default – Can only be seen within class
  • public – Can be seen from anywhere

Methods and Variables

  • public – Can be seen anywhere
  • protected – Package and Subclasses
  • default – Package Private
  • private – Class Only