java编写一个point类(intx,inty)分别写出其getpoint()和setpoint
java编写一个point类(intx,inty)分别写出其getpoint()和setpoint(intx,inty)方法及构造方法...
java编写一个point类(intx,inty)分别写出其getpoint()和setpoint(intx,inty)方法及构造方法
展开
2个回答
展开全部
class Point{
private int point;
public Point(int point) {
super();
this.point = point;
}
public int getPoint() {
return point;
}
public void setPoint(int point) {
this.point = point;
}
}
private int point;
public Point(int point) {
super();
this.point = point;
}
public int getPoint() {
return point;
}
public void setPoint(int point) {
this.point = point;
}
}
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询