Important characteristics
The organization of the code in
Listing 4 has the following important characteristics:
- There is only one global function, and its name is
main.
- The global main function contains only two
statements, one of which is the required return statement.
- The other statement in the global main
function uses the name of a class along with the scope resolution
operator (::) to invoke a static function named classMain
belonging to the class named Hello02.
(See the lesson entitled Expressions and Operators for a
discussion of C++ operators.)
(Cont'd on next slide)