package shape;

public abstract class AbstractShape implements Shape {

	private Point center;

	public AbstractShape(Point center) {
		this.center = center;
	}

	public AbstractShape() {
		this(new Point(0, 0));
	}

	public Point getCenter() {
		return this.center;
	}

	public void setCenter(Point center) {
		this.center = center;
	}
	
	public void move(double deltaX, double deltaY) {
		this.getCenter().translater(deltaX, deltaY); // délégation
	}
	
	@Override
	public boolean isBigger(Shape shape) {
		return this.area() > shape.area();
	}
	
}
