It's not a secret anymore!*
The moose likes Beginning Java and the fly likes Inside Anonymous inner class, we can access Outer class object  ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Inside Anonymous inner class, we can access Outer class object  ?" Watch "Inside Anonymous inner class, we can access Outer class object  ?" New topic
Author

Inside Anonymous inner class, we can access Outer class object ?

Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 798
Inside Anonymous inner class, we can access Outer class object ?

Thanks

Dun Dagda
Ranch Hand

Joined: Oct 12, 2004
Posts: 54
Could you try using outer.this to reference the outer class instance?


SCJP 1.4<br />SCWCD (in progress)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Inside Anonymous inner class, we can access Outer class object ?
 
Similar Threads
Anonymous Inner Classes
Confusion over inner classes
Access to variables of enclosing class
How to Contruct an Inner Class Instance
Inner Class