| class lianxi3 {
 public static void main(String[] args)
 {
 
 new lianxi3 ();//通过,不理解
 }
 }
 class A
 {
 int x=7;
 
 }
 class B extends A
 {
 int x = 5;
 static void function()
 {
 //System.out.println(x);//不行,我能理解
 //System.out.println(this.x);//不行,我能理解
 //System.out.println(super.x);//不行,我能理解
 System.out.println(new B().x);//通过 x=5  不理解
 System.out.println(new A().x);//通过 x=7  不理解
 }
 
 }
 
 
 |