Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Not an object, but a reference, and if it's not a static inner class.
Yes, that's right, because you need access to the fields and methods of the outer class.
If you decompile the inner class, you can see that the compiler adds a parameter to the constructor - a reference to the outer class.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question