• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

outer class from inner class

 
Syamsul Hussin
Ranch Hand
Posts: 59
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[OuterClassName].this.[variableName]
E.g.

[ February 19, 2003: Message edited by: Jim Yingst ]
 
Syamsul Hussin
Ranch Hand
Posts: 59
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic