/**
 * Compare this Fruit object with another
 * fruit object.
 *
 * @param other Object, usually a Fruit, to compare with.
 *
 * @return true if the objects are of identical flavour.
 */
public boolean equals ( Object other )
   {
   if ( other == null )
      {
      return false;
      }
   else if ( other instanceof Fruit )
      {
      return this.flavour.equals ((( Fruit )other ).flavour);
      }
   else return false;
   }