|
| 1 | +package org.teachingkidsprogramming.section07objects; |
| 2 | + |
| 3 | +import org.teachingextensions.WindowUtils.MultiTurtleWindow; |
| 4 | + |
| 5 | +public class TurtleObjects |
| 6 | +{ |
| 7 | + public MultiTurtleWindow mtw = new MultiTurtleWindow(); |
| 8 | + public TurtleObjects() |
| 9 | + { |
| 10 | + showSomeTurtles(); |
| 11 | + } |
| 12 | + public static void main(String[] args) |
| 13 | + { |
| 14 | + new TurtleObjects(); |
| 15 | + } |
| 16 | + private void showSomeTurtles() |
| 17 | + { |
| 18 | + // Call the makeSpeedyTurtle method --#2 |
| 19 | + // Call the makeSlowTurtle method --#4 |
| 20 | + // Call the makeCrazyTurtle method --#6 |
| 21 | + } |
| 22 | + // |
| 23 | + // Create the makeSpeedyTurtle method --#1.0 |
| 24 | + // Create a new speedyTurtle instance |
| 25 | + // Set the speed of your speedyTurtle to the fastest possible |
| 26 | + // Add your speedyTurtle to your MultiTurtleWindow |
| 27 | + // Have your speedyTurtle draw a triangle with 100 pixel sides |
| 28 | + // End of makeSpeedyTurtle method --#1.1 |
| 29 | + // |
| 30 | + // Create the makeSlowTurtle method --#3.0 |
| 31 | + // Create a new slowTurtle instance |
| 32 | + // Add your slowTurtle to your MultiTurtleWindow |
| 33 | + // Have your slowTurtle draw a upside down triangle with 50 pixel sides |
| 34 | + // End of makeSlowTurtle method --#3.1 |
| 35 | + // |
| 36 | + // Create the makeCrazyTurtle method --#5.0 |
| 37 | + // Create a new crazyTurtle instance |
| 38 | + // Add your crazyTurtle to your MultiTurtleWindow |
| 39 | + // Have your crazyTurtle draw a 55 pixel long lightning bolt |
| 40 | + // End of makeCrazyTurtle method --#5.1 |
| 41 | +} |
0 commit comments