class Sphere extends Circle { public Sphere() { super(); } public Sphere( double radius, String color ) { super( radius, color ); } public double calculateArea() { return super.calculateArea() * 4; } } class Cylinder extends Circle { private double height; public Cylinder() { super(); height = 0.0D; } public Cylinder(double height) { super(); this.height = height; } public Cylinder(double height, double radius, String color) { super(radius, color); this.height = height; } public double calculateArea() { return super.calculateArea() * height; } public double getHeight() { return height; } public void setHeight(double height) { this.height = height; } public String toString() { return super.toString() + "Height = " + height + "\n"; } } class Trapezoid extends Shape { private double height; private double sideALength; private double sideBLength; public Trapezoid() { super(); this.height = 0.0D; this.sideALength = 0.0D; this.sideBLength = 0.0D; } public Trapezoid(double height, double sideALength, double sideBLength) { super(); this.height = height; this.sideALength = sideALength; this.sideBLength = sideBLength; } public Trapezoid(double height, double sideALength, double sideBLength, String color) { super(color); this.height = height; this.sideALength = sideALength; this.sideBLength = sideBLength; } public double getHeight() { return height; } public double getSideALength() { return sideALength; } public double getSideBLength() { return sideBLength; } public void setHeight(double height) { this.height = height; } public void setSideALength(double sideALength) { this.sideALength = sideALength; } public void setSideBLength(double sideBLength) { this.sideBLength = sideBLength; } public double calculateArea() { return 0.5 * height * (sideALength + sideBLength); } public String toString() { return super.toString() + "height = " + height + "Side A Length = " + sideALength + "Side B Length = " + sideBLength; } }