I have:
class XILightSource
{
public:
virtual XVec2 position() const = 0;
};
class XLightSprite : public XSprite, public XILightSource
{
};
The problem is that XSprite already has the same function position. How can i say to compiler, that i want to use XSprite::position function as an implementation of XILightSource::position() ?
override it and call XILightSource::position() :