The sequence structure in code

Listing 12 contains an object-oriented version of a program that you first saw in an earlier lesson entitled The sequence Structure.  The earlier version was implemented solely in the global main function.

The version in Listing 12 is implemented using an approach that avoids the use of all global functions other than the global main function.