How to create a GameObject class in C++ and SDL2. A great basis for all objects in our game. This class will allow us to create player, enemy and pickup classes all with inherited functionality.
A C++ and SDL2 tutorial series on how to build a game from scratch.
...
https://www.youtube.com/watch?v=agn8GqGrCj4