/** * Defines a basic shape with just area * * @author Hyrum D. Carroll * @version 0.3 (3/23/2022) */ public class Shape{ private double area; public Shape(){ area = 0.0; } public Shape( double a ){ area = a; } public void setArea( double a ){ area = a; } public double getArea(){ return area; } public String toString(){ return "Shape:\n\tarea: " + area + "\n"; } }