Below is code with a method-local inner class. The outer class, the method in which the inner class is defined and the inner class itself have a final attribute called
string. How can you access the string defined in the method in this case?
This prints
default string : Private attribute of inner class
this.string : Private attribute of inner class
InnerTest.this.string : private outer string
as expected. So how do u explicity reference the other string to print
"Method defined string"? It is possible at all??
//Tom
(
tags added)
[ May 16, 2005: Message edited by: Barry Gaunt ]