【单选题】现有: 1. class Top { 2. static int x = 1; 3. public Top(int y) { x *= 3; } 4. } 5. class Middle extends Top { 6. public Middle() { x += 1; } 7. public static void main(String [] args) { ...
【单选题】现有代码如下 1 . class Top { 2. static int x = 1 ; 3 . public Top() { x*=3; } 4 . } 5. class Middle extends Top { 6. public Middle() {x+=l; } 7. public static void main(String [] arg...
【单选题】现有: 1. class Top { 2 . static int x=l ; 3. public Top (inty) { x*=3; } 4. } 5. class Middle extends Top { 6. public Middle() {x+=1; ) 7. public static void main (String [] args)...
【单选题】现有: 1. class Top { 2. static int x=l; 3. public Top (inty) { x*=3; } 4. } 5. class Middle extends Top { 6. public Middle() {x+=1; ) 7. public static void main (String [] args...