import java.awt.Color;

public abstract class Shape implements Colorable{

    double x;
    double y;
    Color color;
    
    public Shape() {
        this.x = 0;
        this.y = 0;
        System.out.println("shape created");
    }
    
    public Shape(double x, double y) {
        this.x = x;
        this.y = y;
        System.out.println("shape created at (" + this.x + ", " + this.y + ")");
    }
    
    public abstract double getArea();
    public abstract double getPerimeter();
    
    public double getX() {
        return this.x;
    }
    
    public double getY() {
        return this.y;
    }
    
    public void setX(double x) {
        this.x = x;
    }
    
    public void setY(double y) {
        this.y = y;
    }
    
    public void setColor(Color color) {
        this.color = color;
    }
    
    public String toString() {
        return "shape at " + this.x + ", " + this.y;
    }
}
