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;
}
鸿蒙传说
摇曳的蔷薇