|
Java™ by example!
|
|
|
How do I get the reference to the enclosing object from an inner class?
You can get the this pointer by specifying classname.this as shown in following example:
outputs:
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|