Protected members in a superclass inaccessible by indirect subclass in Java
Posted
by MSumulong
on Stack Overflow
See other posts from Stack Overflow
or by MSumulong
Published on 2010-05-12T16:09:20Z
Indexed on
2010/05/12
16:14 UTC
Read the original article
Hit count: 268
Why is it that in Java, a superclass' protected members are inaccessible by an indirect subclass in a different package? I know that a direct subclass in a different package can access the superclass' protected members. I thought any subclass can access its inherited protected members.
© Stack Overflow or respective owner