Two Laptop Bag*
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
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 ?