package inherShapes;

public class Shape {
	Point ll;

	public Shape(Point ll) { this.ll=new Point(ll); 	}
	public void move(double dx, double dy) { ll.move(dx,dy); }
	public Point min() { return ll; }

	@Override public String toString() {
		Class c = this.getClass();
		return c.getSimpleName() + " @" + this.ll;
	}

	@Override public boolean equals(Object obj) {
		if (!(obj instanceof Shape)) return false;
		Shape s = (Shape) obj;
		return (s.ll.equals(this.ll));
	}

	@Override public int hashCode() {
		return ll.hashCode();
	}

}