Do subclasses inherit private fields?
This question addresses the same problem but I don't quite understand how that satisfies the (seemingly) contradictory situations below.
http://docs.oracle.com/javase/tutorial/java/IandI/subclasses.html
Says that "A subclass does not inherit the private members of its parent class."
This means that it neither inherits private instance variables nor private methods right?
However, how does this work if it inherits a public accessor method from its parent? It returns an instance variable that it doesn't know exists?
Also, my computer science book (Baron's AP Computer Science A) has the correct answer to a question that says that "The (Subclass) inherits all the private instance variables and public accessor methods from the (Superclass)."
Isn't this in contraction to oracle's tutorial?
Thanks for your help