diff --git a/Point.java b/Point.java new file mode 100644 index 0000000000000000000000000000000000000000..a074ad905e6d6f2600da82265923caf36f7d4f30 --- /dev/null +++ b/Point.java @@ -0,0 +1,18 @@ +package review; + +public class Point { + public int x; + public int y; + public Point(){ + this.x = 0; // 初始化为0 + this.y = 0; + } + public Point(int x,int y){ + this.x = x; + this.y = y; + } + public Point(Point p){ + this.x = p.x; + this.y = p.y; + } +}