Search:
Forum
General C++ Programming
Passing an inherited class to a function
Passing an inherited class to a function
Oct 29, 2010 at 2:15pm UTC
allanrobertson7
(1)
Is it possible to have a function collisionDetection(Sprite sprite) which could also take inherited versions of the sprite class?
Oct 29, 2010 at 2:22pm UTC
hamsterman
(4538)
Only pointers or references to them. see
http://www.cplusplus.com/doc/tutorial/polymorphism/
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs