B
Bernd Fuhrmann
Hi!
I was just wondering if it is possible to access shadowed variables from
within an inner class. Example:
public class Outer {
public int a;//#1
public class Inner {
public int a;//#2
public void dosth() {
System.out.println("a from inner is "+a);
// Is there any way to access a from Outer
// within this context?
}
}
}
Is there any way to access the member a of Outer within Inner?
Thanks in advance,
Bernd Fuhrmann
I was just wondering if it is possible to access shadowed variables from
within an inner class. Example:
public class Outer {
public int a;//#1
public class Inner {
public int a;//#2
public void dosth() {
System.out.println("a from inner is "+a);
// Is there any way to access a from Outer
// within this context?
}
}
}
Is there any way to access the member a of Outer within Inner?
Thanks in advance,
Bernd Fuhrmann