class Ex { Ex() { System.out.println("Ex,no-args"); } Ex(int i) { System.out.println("Ex,int"); }}public class Fx extends Ex { Fx() { super(); System.out.println("Fx,no-args"); } Fx(int i) { this(); System.out.println("Fx,int"); } public static void main(String[] args) { Fx f = new Fx(5); }}
添加回答
举报
0/150
提交
取消