Attached your will find my completed files, I only have one question about the parent class which is called GoeSolids
it has to be a generic geometric solid and i dont think I did that quite right. will someone be able to help me fix it?
import java.util.Scanner;
import java.text.DecimalFormat;
public class GeoSolids
{
int radius;
int height;
public GeoSolids (int radi, int h)
{
radius = radi;
height = h;
}
public GeoSolids ()
{
radius = 0;
height = 0;
}
public void setRadius(int radi)
{
radius = radi;
}
public double getRadius()
{
return radius;
}
public void setHeight(int h)
{
height = h;
}
public double getHeight()
{
return height;
}
public String toString()
{
DecimalFormat fmt = new DecimalFormat("0.##");
String result = "The radius is " + fmt.format(radius) + "\nThe height is " + fmt.format(height);
return result;
}
}