I think I spotted a contradiction in the java official documentation here: http://docs.oracle.com/javase/tutorial/java/IandI/subclasses.html
On one hand, it says:
" If the subclass is in the same package as its parent, it also inherits the package-private members of the parent."
after which, it says:
A subclass does not inherit the private members of its parent class.
Aren't they contradictory statements? I would think the second statement is correct. Private fields can be accessed only within the class that it defines them (unless we have defined private or protected get accessors in that class). Thank you.