下面代码的执行结果是( )。public class Parent {public int a = 10;}public class Child extends Parent{public int a=20;}public class Test {public static void main(String[] args) {Child child = new Child();System.out.println(child.a);}}
(A)0
(B)10
(C)20
(D)30
查看解析
参考答案
继续答题:下一题