public class a { &nbsppublic int num...
发布于 2022-03-03 15:13:00
public class a { public int num public int sum public a(){ this(1) num++ } public a(int num){ this.num = num this.sum = num + 2 } } public class testA { public static void main(String[] args) { a s = new a() System.out.println("num is" + s.num + "sum is" + s.sum) } }该程序的输出结果是()
登录后免费查看答案
关注者
0
被浏览
14