Here are two statements I found concerning inner classes
JavaDocs:
As with instance methods and variables, an inner class is associated with an instance of its enclosing class and has direct access to that object's methods and fields. Also, because an inner class is associated with an instance, it cannot define any static members itself.
On another site I found this:
A nested class, for the most part, is just that—a class declared in the definition of an enclosing class. It does not inherit anything from the enclosing class, and an instance of the nested class cannot be assigned to a variable reference to the enclosing class.
Aren't the bold marked lines contradicting? How can you not inherit a surrounding objects fields and methods and at the same time have access to its fields and methods?