As far as I know, protected members of the class (variables, methods) can be accessed by classes within the package as well as its subclasses.
But what about if I make the class protected?
Will java allow to be inherited by other classes outside the package?
But what about if I make the class protected?
Will java allow to be inherited by other classes outside the package?