现有: class Top { static int x=l; public Top (inty) { x*=3; } } class Middle extends Top { public Middle() {x+=1; ) public static void main (String [] args) { Middle m = new Middle(); System. out .println (x); } } 结果为:()
- A、1
- B、2
- C、3
- D、编译失败
正确答案:D
答案解析:有
微信扫一扫手机做题