package InterfaceDemo; /** * Solid.java * * * Created: Tue Feb 13 19:57:07 2001 * * @author Stuart C. Shapiro * * The class of solids---3-dimensional objects with uniform density. */ public class Solid { /** The density of this solid. */ protected double density; /** * Constructs a solid. * @param densty The density of this solid. */ public Solid (double densty){ density = densty; } /** Returns the density of this solid. */ public double getDensity(){ return density; } }// Solid