PLEASE HELP I DONT KNOW TURTLES


Flag Post

ajex

asked
1

PLEASE HELP I DONT KNOW TURTLES

1 Answers


[{"insert":"You should not put the word \"billy\" in your function, because the function you are writing is applicable to any Turtle object, not just Billy. In fact, Billy is not guaranteed to exist until you get to the TurtleRunner.java file and actually declare \"billy\" as a Turtle object.\n\nInstead of "},{"attributes":{"bold":true},"insert":"billy.forward(200) "},{"insert":"try "},{"attributes":{"bold":true},"insert":"forward(200) "},{"insert":"or "},{"attributes":{"bold":true},"insert":"this.forward(200)"},{"attributes":{"italic":true,"bold":true},"insert":". "},{"insert":"The 'this' keyword tells the program you want to move whichever Turtle is relevant, but you should be able to do without it.\n\nWhen you get to the TurtleRunner file, you should actually put Billy's name because now you are actually telling the program what to do in your \"main\" function, and you will need to specify which Turtle you want to move forward.\n\nIn summary, put "},{"attributes":{"bold":true},"insert":"billy.forward(200) "},{"insert":"in the TurtleRunner.java file, but put "},{"attributes":{"bold":true},"insert":"this.forward(200) "},{"insert":"or simply "},{"attributes":{"bold":true},"insert":"forward(200) "},{"insert":"in the method declaration in the Turtle.java file.\n"}]

Your Answer


Feedback