Turning instructions
Display Listing 2.
In this case, the closeOrderDrill method is:
- Instructed to cause
the object to turn RIGHT each time a penguin is passed as a parameter
- Instructed to cause the object to turn LEFT each time a cow is
passed as a parameter.