This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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)
 
Have you checked out Aspose?
 
subject: Inside Anonymous inner class, we can access Outer class object ?
 
It's not a secret anymore!