public class MedicineBox { private double pinkness; // field: describes a MedicineBox private double length, width, height; // private Pill[] contents; private String brand; private boolean isOpen; public double getWidth() { return this.width; } public double getVolume() { return this.width * this.length * this.height; } public static void main(String[] args) { double pinkness; // local variable: temporary storage for main MedicineBox m = new MedicineBox(); m.width = 3; m.length = 4; m.height = 5; double vol = m.getVolume(); System.out.println(vol); } }