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;

  }
}

You need to be a little more specific on your expectation for this "generic" base class. What do you believe is lacking or wrong?

You need to be a little more specific on your expectation for this "generic" base class. What do you believe is lacking or wrong?

like it has to define what all three geosolids i chose have in common
like i did for my sports program in my parent class all 3 sports had wins, losses, and ties.

for this geosolid i just dont know where to begin, i mean i began it but it doesnt seem right?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.