Important characteristics (cont'd - 1)
The organization of the code in
Listing 4 has the following important characteristics (cont'd from
previous slide):
- The class named Hello02 contains no static
variables.
- The class named Hello02 contains only one
static function and it is named classMain.
- The static function named classMain takes
no parameters, returns void, and contains only two executable
statements.
- The first executable statement in the classMain
function instantiates a new object of the class named Hello02
and stores the address of that object in the pointer variable named
ptrToObject.
(Cont'd on next slide)