C++ .exe ignores classes, only running main (beginner)
<p>It's only running main, the output "Enter a word" but completely ignores the objects/class</p>

<p>I'm a newb, sorry if this is an inappropriately easy question.
This happens on both release and debug mode</p>

<pre><code>#include &lt;iostream&gt;

using namespace std;

class WordGame
{
public:

    void setWord( string word )
    {
        theWord = word;
    }
    string getWord()
    {
        return theWord;
    }
    void displayWord()
    {
        cout &lt;&lt; "Your word is " &lt;&lt; getWord() &lt;&lt; endl;
    }
private:
    string theWord;
};


int main()
{
    cout &lt;&lt; "Enter a word" &lt;&lt; endl;
    string aWord;
    WordGame theGame;
    cin &gt;&gt; aWord;
    theGame.setWord(aWord);
    theGame.displayWord();

}
</code></pre>
