/* An inheritance example from Java Gently (3rd Edition) by Judith Bishop. */ public class Rhino extends Herbivores { private double hornLength; public Rhino (String n, int w, double l) { super(n,w); hornLength = l; } public String toString () { return name + " " + grassNeeded + " " + hornLength; } }