【简答题】
预测程序运行结果 class Father { int num1=0; public Father(){ System.out.println("num1:"+num1);} } class Son extends Father{ int num2=10; public Son(){ System.out.println("num2:"+num2);} } public class StudentDemo{ public static void main(String []args){ Son son=new Son(); }}
参考答案:
参考解析:
举一反三