what is the way to access grand parent's field
hello all,
please go through the code below and suggest a way to access class X's 'i' without a method call (assume all i have is a reference for class X ex. X ref=null;)
class X
{
int i=10;
}
class A extends X
{
int i=10;
}
class B extends A
{
B()
{
//here i need to access class X's i and not class A's i..
//if i do super.i -i get class A's i;;;; but i want class X's i
}
}

