Possible Duplicate:
Why is there no sub-class visibility modifier in Java?
The access level table for Java, shows 4 different options for controlling access to members of a class:
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
There is no modifier, however, for "accessible to class and subclass only". That is:
Modifier Class Package Subclass World
c++prot Y N Y N
Is it possible at all to define such access level in Java?
If so, how?
If this isn't possible, this must be due to a well thought design principle. If so, what is that principle. In other words, why having such access level in Java isn't a good idea?