Possible duplicate:
Why is there no subclass visibility modifier in Java?
The access level table for Java shows 4 different parameters for controlling access to class members:
Modifier Class Package Subclass World public YYYY protected YYYN no modifier YYNN private YNNN
There is no modifier, however, for "accessible only for class and subclass". I.e:
Modifier Class Package Subclass World c++prot YNYN
Is it even possible to define such a level of access in Java?
If so, how?
If this is not possible, it should be associated with a well-designed design. If so, what is this principle. In other words, why is having such a level of access in Java not a good idea?
an00b source share