class Fu{
int i = 10;
}
class Zi extends Fu{
int i = 20;
public void show(){
int i =30;
System.out.println(i);
System.out.println(this.i);
System.out.println(super.i);
}
}
class testDemo{
public static void main(String[] args) {
Zi z = new Zi();
z.show();
}
} |
|