This will probably come off as a really dumb question. I'm really confused as to whether I should be instantiating a object from the sf::Sprite class or inheriting it? Here is what I mean:
Mario.h
class Mario : public sf::Sprite {}
Mario.h
class Mario{
sf::Sprite m_sprite;
}
At the end of the day, shouldn't it be possible to draw the sprite on screen either way? If so, what's the ideal/common practice and is there any possible advantages of inheriting over instantiating or vice versa in this case?