does a base class need to include the header files of its subclasses
Printable View
does a base class need to include the header files of its subclasses
A base class does not include any header files. As for the file containing the definition of the base class: it probably should not be including any header files that contain the definition of any subclass of that base class.Quote:
Originally Posted by sigur47
I would go as far as to say, if you need to include the header files of subclasses in your base class, then you most likely have a broken implementation somewhere.