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 outer class from inner class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "outer class from inner class" Watch "outer class from inner class" New topic
Author

outer class from inner class

Syamsul Hussin
Ranch Hand

Joined: Feb 09, 2003
Posts: 59
hi, can u tell me how to access an outer class varible from an inner class if the variable names are the same. thank you


----------------------------------<br />SCJP 1.4
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
[OuterClassName].this.[variableName]
E.g.

[ February 19, 2003: Message edited by: Jim Yingst ]

"I'm not back." - Bill Harding, Twister
Syamsul Hussin
Ranch Hand

Joined: Feb 09, 2003
Posts: 59
thanks
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: outer class from inner class
 
It's not a secret anymore!