Modifier Class Package Subclass World
public Y Y Y Y
protected Y Y Y N
no modifier Y Y N N
private Y N N N
No modifier (default modifier) is accessible from the same package only and not with the subclass.
What if the subclass is in the same package? Will it be accessible to the subclass?