The base class knows nothing about the existence of child classes, and should never even want to know.
If you think you have such a requirement, you have a fundamentally flawed design.
But most likely all you need are some virtual functions, which would make the whole thing happen implicitly, so the correct overridden function from a child class gets called from a non-overridden method in the base class when that method is used from an instance of that child class.
jwenting
duckman
8,522 posts since Nov 2004
Reputation Points: 1,656
Solved Threads: 345
Skill Endorsements: 19