public class Cylinder extends Circle{ private int h; public Cylinder (int x, int y, int c, int d){ super (x, y, c); this.h = d; } public double getArea(){ return ((2 *super.getArea()) + (super.getCircumference() * this.h)); } public double getVolume(){ return (super.getArea() * this.h); } public void printValues(){ super.printValues(); System.out.println ("Height = " + this.h); } public String getName(){ return "Cylinder"; } }