"expected ')' before textIn" and "expected constructor, destructor or type conversion before '(' token" : <p>I've looked through multiple threads, but they are either completely different problems or people not knowing how to create constructors. I get the titles first error in my header, and the second error in the cpp file itself.</p>

<p>MenuItem.h</p>

<pre><code>#include "SFML/Graphics.hpp"
#include &lt;string&gt;

#ifndef MENUITEM_H
#define MENUITEM_H

class MenuItem
{
            public:
                //Below constructor creates the first error
                MenuItem(string textIn="", float x, float y, bool highlightedDefault=false);
                bool highlighted;
                sf::Text text;
};

#endif // MENUITEM_H
</code></pre>

<p>MenuItem.cpp</p>

<pre><code>#include "MenuItem.h"

MenuItem::MenuItem(string textIn, float x, float y, bool highlightedDefault)
{
    ...
}
</code></pre>
