// CSE 142, Autumn 2009, Marty Stepp // A Toad is a critter very similar to a 5-year old Frog, except that he // hops west instead of east. // We implement this by using inheritance and overriding just selected parts // of the Frog's movement behavior (specifically, his getHop method). import java.awt.*; public class Toad extends Frog { public Toad() { super(5); // age 5 } public Color getColor() { return new Color(192, 128, 0); } public Direction getHop() { return Direction.WEST; } }