| KyleMiles (83) | |||
Okay, so I'm making a sprite class, and I am using SFML to do it. My question is what's the difference between doing:class Sprite : public sf::Spriteversus:
And is there a clear benefit to doing one over the other? Thank you for any help you can give! - Kyle | |||
|
Last edited on
|
|||
| coder777 (2378) | ||||
This class Sprite : public sf::Spriteis used if you want to extend sf::Sprite i.e. overriding virtual functionsif not you might prefer this
sf::Sprite. The benefit would be that Sprite is free to inherit from other classes
| ||||
|
|
||||
| KyleMiles (83) | |
|
Thank you a lot! - Kyle | |
|
|
|