Point(int a, int b) {setPoint(a, b);}public void setPoint(int a, int b) {x=a;y=b;}}class Line extends Point {protected int x, y;Line(int a, int b) {super(a, b);}这样使用怎么错了?class Line extends Point {protected int x, y;Line(int a, int b) {x = a;y = b;}
添加回答
举报
0/150
提交
取消