#include <QGraphicsScene>
using namespace std;
class Object
{
    public:
    Object(){};
    virtual ~Object(){};
    virtual void draw(QGraphicsScene * s, int x, int y){};
    virtual string get();
};
I get an error saying "undefined reference to vtable for Object". The error happens on both the constructor and the destructor. The error goes away when I delete the "using namespace std;" line. How can I fix this error without deleting that line? Or providing another method of using a string variable type?
 
    