The error in the first constructor is that you're declaring a default constructor, instead of a constructor with an sf::Font
as argument.
In the second constructor, you are putting {}
, meaning that you're defining the constructor with no content.
If you want to define the body of the constructor later you must put a ;
at the end.
It should be:
class TextWrap : public sf::Text
{
public:
TextWrap(sf::Font font);
};
class CircleWrap : public sf::CircleShape
{
public:
CircleWrap();
};