

class ReallyFancyCashRegister extends FancyCashRegister {

   // the only thing on sale today is elephants
   private String onsale = "Elephants";

   // no constructor, will just call constructor of parent class

   // check if the item is on sale today (returns true if it is)
   public boolean isItemOnSale (String item) {

      return (item.equals (onsale));
   }

   public void gloop() {
      System.out.println(onsale + " is on sale!");
      this.summarize();
   }
   
}

      
