public class ConfusedTurtle extends Turtle { /** * Constructor that takes a world and * calls the parent constructor * @param theWorld the world to put the * confused turtle in */ public ConfusedTurtle(World theWorld) { super (theWorld); } /** * Method to turn left (but confused turtles * turn right) */ public void turnLeft() { super.turnRight(); } /** * Method to turn right (but confused turtles * turn left) */ public void turnRight() { super.turnLeft(); } }