about summary refs log tree commit diff
path: root/usth/ICT2.2/labwork/5/Java/abstract/Point.java
blob: f6daf2230251fbe8d67ccbe4d2e46d2b98673e2d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
public class Point extends Shape
{
  public double x;
  public double y;

  public Point(double x, double y)
  {
    this.x = x;
    this.y = y;
  }

  public String getName() { return "Point"; }
}