|
anticipation
|
Public Member Functions | |
| HelloWorld (char *myMessage) | |
| virtual | ~HelloWorld () |
Private Attributes | |
| char * | message =NULL |
| HelloWorld::HelloWorld | ( | char * | myMessage | ) |
This method will instantiate a new HelloWorld object with the given message. It will also print out the message to the console.
| myMessage | This is a pointer to the message that is to be used. |
Determine the length of the char array.
Allocate a new buffer for the char array.
Initialize the buffer to have all zeros in it.
Copy the char array into the allocated buffer.
Print out the message to the console.
|
virtual |
This is the destructor for the class. It will delete any heap allocated memory.
Clean up any memory allocated on the heap.
|
private |
This variable holds the message that is to be manipulated.