I always find this topic confusing in
Java.
Hi,
I know access modifiers are those which specify where a class ( and instance) member has access. This is CLEAR.
Now where I get confused is which instance members are inherited to subclasses. I am sure that public and protected members get inherited to subclasses, but private members do not. But what about package?
Does it matter if the subclass is in different package?