Hello World
Hello World version one.
Note the class name and the file name must match. No objects are created, we only use the "class" function main.
Broken version one.
The sayIt function is a member function, but there is no instance for it to add on.
First fix
Make sayIt function a class function instead of a member function.
Second fix
Make an Hello4 object for the member function to act on.
Still works
Make the output string a member variable.
Still works but prints something different
Make the output string a member variable which is not initialized.
Add a constructor
No matching constructor.
Use the constructor