aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
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 agree. Here's the link: http://aspose.com/file-tools
 
subject: outer class from inner class