Getting the distance to the chicken
Display Listing 2.
Open the functions tab for the coach object.
Drag the function named distanceTo from the functions tab and drop it on top of the 1 that is showing as the return value in Figure 6.
Specify "the entire Chicken"
This produces code for the function named getDistanceToChicken that matches the source code for that function in Listing 2.
Listing 2. Source code for the program named Alice0135b.
Created by: Dick Baldwin