Description of the program code (cont'd)

Display Listing 1.

The fourth statement results in the variable named extendedString containing a string that is the concatenation of:

The contents of the variable named extendedString are then passed to the method named say.

This method is is called on the coach object to produce the screen output shown in Figure 3.