derived class files

Hi!
I have a base class from which I want to derive many derived classes.
Where should I put the derived classes? In the same .h of the base class or do I need a .h (and so .cpp) file for each of them?
Where should I put the derived classes?

This really a design question that has no real "correct" answer. C/C++ does not require classes to be in their own header and source files.

You can either put each class in it's own header and source file or have more than one class in you header or source files, your call.

Topic archived. No new replies allowed.