public void main ( ) {
|
|
//
Copyright 2007 R.G.Baldwin |
//
Program demonstrates defining two new functions. |
doInOrder { |
|
print( (
Distance to
chicken is: + ( ( coach.getDistanceToChicken
( ) ) .toString() ) ) ); |
( coach.getChicken ( ) ) .turn(
RIGHT
, 2
revolutions ); |
} |
} |
|