anticipation
Loading...
Searching...
No Matches
HelloWorld Class Reference

Public Member Functions

 HelloWorld (char *myMessage)
 
virtual ~HelloWorld ()
 

Private Attributes

char * message =NULL
 

Constructor & Destructor Documentation

◆ HelloWorld()

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.

Parameters
myMessageThis is a pointer to the message that is to be used.
  1. Determine the length of the char array.

  2. Allocate a new buffer for the char array.

  3. Initialize the buffer to have all zeros in it.

  4. Copy the char array into the allocated buffer.

  5. Print out the message to the console.

◆ ~HelloWorld()

HelloWorld::~HelloWorld ( )
virtual

This is the destructor for the class. It will delete any heap allocated memory.

Clean up any memory allocated on the heap.

Member Data Documentation

◆ message

char* HelloWorld::message =NULL
private

This variable holds the message that is to be manipulated.


The documentation for this class was generated from the following files: