CoreJava/exp3/Point.java

16 lines
182 B
Java
Raw Normal View History

2024-05-09 09:10:51 +08:00
package exp3;
class Point{
protected int x,y;
Point(){}
Point(int a,int b){
setPoint(a,b);
}
public void setPoint(int a,int b){
x=a;
y=b;
}
}