| More on Order of Declaration Processing |
class Nasty {
A var;
class A {
int meth() {
Bad x;
x = new Bad;
return x.meth().meth();
}
void C() { . . . }
}
class Bad {
C meth () { return new C; }
int C;
}
class C extends A {
C meth3() { return var; }
}
int meth2( C p ) {
A y;
y = new A;
return y.meth();
}
}
| More on Order of Declaration Processing |