class A {
void methodA {
B b= new B();
b.methodB();
//point 1
}
private class B {
void methodB(){
//point 2
}
}
}
if I use a system out to print this.toString()
at both point 1 and point 2, it gives the same value. Can anyone please tell me why ? Shouldn't those two give different values ?