class Film extends InventoryItem implements Sortable { public Film(int i, int rTemp) { super("The Film class",i); recommendedTemp = rTemp; numberOfExposures = 24; } // constructor // methods speific to Film void print() { System.out.println( getDescription() + getId() + " : " + getQuantityOnHand()); System.out.println( " recom. temp : " + recommendedTemp); } // print public int compare(Sortable b) // implements the interface { Film fm = (Film)b; // cast b to Film return recommendedTemp - fm.recommendedTemp; } // compare private int recommendedTemp; private int numberOfExposures; } // Film