|
Package access classes whose "method declaration is publicly meaningless" are not more meaningful than non-public methods.
But there are special cases, such as a package access permission class, inheriting another public class, or implementing a public interface, then those overloaded or implemented methods must not be less than the parent class's limit, if The parent class is public, and it can only be public.
And these methods can indeed be accessed indirectly from the parent class reference. |
|