CS Summer 2009
Unit 1 Part 1

our student aides: David Ensey and Philip Song
  1. Course webpage with API's and Unit 1 examples
  2. Running Java:
  3. Class hierarchy for Unit 1 part 1: see page One-19:
    		     Constructors are used to create new instances of these classes
    		     Example: Robot karel = new Robot() --> default constructor, 0 arguments
    			      Robot mary = new Robot(5,4,Display.SOUTH, 10) --> 4 argument constructor
    
    	   Robot  (move, turnLeft, pickBeeper, putBeeper)
    	     ^       2 constructors, p. One-5, default 0 argument and 4 arguments: x,y,direction,beepers
    	     |
    	     |
    
    	  Athlete (turnAround, turnRight)
    	  ^     ^     2 constructors, p. One-10,One-13, defualt: 1,1,NORTH,INFINITY
    	  |     |                       4 argument: x,y,direction,beepers
    	  |     |                       calls super 4 argument constructor of Robot
    
           Climber  Racer (sprint, put(n), pick(n))  1 constructor (y)
      (climbUpRight,                                 p. One-21
       climbDownRight,                               1 argument (y),
       climbUpLeft,                                 calls super 4 argument constructor of Athlete
       climbDownLeft)
       1 constructor (x) p. One-14
       1 argument (x), 
         calls super 4 argument constructor of Athlete
       
  4. Lab00 Hello Robot
  5. One-7, Lab01 Students and Books
  6. One-10 Lab02 - Escape the Maze , try to use a "void putAndMove(Robot r)" method
  7. One-14 Lab03 - Climb Every Mountain, define a new class Climber extends Athlete
  8. One-16 Lab04 - Take the Field:
  9. One-21 Lab05 Shuttle Run, a new class Racer extends Athlete
  10. One-24 Lab06 A Half-Dozen Tasks