
public abstract class Figure {

    // Name of the figure
    private String name;

    // Constructor of the figure with a name
    public Figure(String name) {

    }

    // Calculates the area of a figure
    abstract public double area();

    // Indicates if the figure is regular or not
    abstract public boolean isRegular();

    // Gets the name of the figure
    protected String getName(){

    }

    // Sets the name of the figure
    protected void setName(String name){

    }

}
