User Tools

Site Tools


milewalker

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
milewalker [2019/08/23 09:36]
frchris [MileWalkerRunner]
milewalker [2019/08/23 09:37] (current)
frchris [MileWalkerRunner]
Line 43: Line 43:
  }  }
  public static void task(){  public static void task(){
- // Declare a instance of a MileWalker:​ + // Declare a instance of a MileWalker ​Robot
- MileWalker lisa = new MileWalker (3, 2, East, 0);       // declare a MileWalker robot + MileWalker lisa = new MileWalker (3, 2, East, 0);        
- lisa.moveMile();​  // call the new method + 
- lisa.pickBeeper();​          // call an old method+ lisa.moveMile(); ​  ​// call the new method 
 + lisa.pickBeeper();​ // call an old (inherited) ​method
  lisa.turnLeft();​  lisa.turnLeft();​
  lisa.move();​  lisa.move();​
milewalker.txt · Last modified: 2019/08/23 09:37 by frchris