> Hi everyone,
> I'm trying to understand inner classes, but came across the following
[quoted text clipped - 23 lines]
> System.out.println(getValue()); //<-- inner
> System.out.println(getText()); //<-- enclosing
System.out.println( EnclosingClass.this.getValue() ); //
<-- enclosing
> }
> }
[quoted text clipped - 17 lines]
>
> }
Will print
200
hello!
100
Kind regards
robert
Jono - 31 Jul 2006 13:16 GMT
Thank you. It's a bit of a weird syntax, and NetBeans' "intellisense"
doesn't offer it up as an option, but it compiles and runs fine!
> > Hi everyone,
> > I'm trying to understand inner classes, but came across the following
[quoted text clipped - 58 lines]
>
> robert
Jono - 31 Jul 2006 13:30 GMT
Upon further investigation I've found that the reference you described
is called a "qualified this" so I've been able to read up more about it
in the JLS. Thank you.
Jono
> Thank you. It's a bit of a weird syntax, and NetBeans' "intellisense"
> doesn't offer it up as an option, but it compiles and runs fine!
[quoted text clipped - 61 lines]
> >
> > robert