package shapes; public class TestBox { public static void main(String[] args) { // this creates an object called usefulBox Box usefulBox = new Box(); // getHeight() is the getHeight from Rectangle // height shows the height variable from Box System.out.println ( "The height of Rectangle is " + usefulBox.getHeight() + " and of usefulBox is " + usefulBox.height); // getDepth and getVolume are from Box System.out.println ( "The depth of usefulBox is " + usefulBox.getDepth() + " and the volume of usefulBox is " + usefulBox.getVolume()); } }