// CSE 142, Autumn 2008, Marty Stepp // A WhiteRabbit is the same as a Rabbit except for the following two changes: // // 1) Its color is white. // 2) It "hops" north 8, south 8, east 2, and repeats. import java.awt.*; // for Color public class WhiteRabbit extends Rabbit { public Color getColor() { return Color.WHITE; } // Overrides this method from Rabbit public int getJumpHeight() { return 8; } }