题目详情
单选题 在Java中,以下程序编译运行后的输出结果为( ). public class Test { int x, y; Test(int x, int y) { this.x = x; this.y = y; } public static void main(String[] args) { Test pt1, pt2; pt1 = new Test(3, 3); pt2 = new Test(4, 4); System.out.print(pt1.x + pt2.x); } }

学科:面向对象程序设计
时间:2023-05-23 11:25:39
