Page 1 of 1

About Question enthuware.ocajp.i.v7.2.1330 :

Posted: Mon Mar 17, 2014 11:22 pm
by fasty23
Explanation said:
"protected
It will allow the subclasses and the classes in same package to access the
method."
I think this definition is for "default" not protected.
Is it right?

Re: About Question enthuware.ocajp.i.v7.2.1330 :

Posted: Mon Mar 17, 2014 11:39 pm
by admin
No, it is correct. subclasses can be in any package while classes in the same package do not need to be subclasses.