This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets 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
 
Similar Threads
inner class
Inner classes
Outer Class Keyword
Instantiate Static-Nested class
How to Contruct an Inner Class Instance