【单选题】class Super { public int i=0; public Super(String text) { i=1; } } public class Sub extends Super { public Sub(String text) { i=2; } public static void main(String args[]) { Sub sub=new Sub("Helio"); ...
【简答题】下面代码执行后的结果是 class Super { public int i = 0; public Super(String text) { i = 1; } } public class Sub extends Super { public Sub(String text) { super(text); i = 2; } public static void main(String args[...
【单选题】下面程序运行结果为 class Super{ public int i = 0; public Super(String text){ i = 1; } } public class Sub extends Super{ public Sub(String text){ i = 2; } public static void main(String[] args){ Sub sub = new S...
【单选题】下面程序运行结果为 class Super{ public int i = 0; public Super(String text){ i = 1; } } public class Sub extends Super{ public Sub(String text){ super(“”); i = 2; } public static void main(String[] args){ Sub ...