package part2;

import java.awt.Color;
import java.awt.Point;

public abstract class Shape {
protected Color color;
public Shape(Color color) { this.color = color; }
public Color getColor() { return this.color; } public void setColor(Color c) { this.color = c; }
abstract double getArea(); abstract double getPerimeter(); abstract void translate(Point p);
}