Passing an inherited class to a function

Is it possible to have a function collisionDetection(Sprite sprite) which could also take inherited versions of the sprite class?
Only pointers or references to them. see http://www.cplusplus.com/doc/tutorial/polymorphism/
Topic archived. No new replies allowed.