It's only running main, the output "Enter a word" but completely ignores the objects/class
I'm a newb, sorry if this is an inappropriately easy question. This happens on both release and debug mode
#include <iostream>
using namespace std;
class WordGame
{
public:
    void setWord( string word )
    {
        theWord = word;
    }
    string getWord()
    {
        return theWord;
    }
    void displayWord()
    {
        cout << "Your word is " << getWord() << endl;
    }
private:
    string theWord;
};
int main()
{
    cout << "Enter a word" << endl;
    string aWord;
    WordGame theGame;
    cin >> aWord;
    theGame.setWord(aWord);
    theGame.displayWord();
}
 
     
     
    