/* An inheritance example from Java Gently (3rd Edition) by Judith Bishop. */ public class Herbivores extends Animals { protected int grassNeeded; public Herbivores (String n, int g) { super(n); grassNeeded = g; } }