4 ms·
Forward Declarations in C++
- PythonDeveloper 13y agoI recommend using interfaces instead of forward declarations. Interfaces are a concrete contract and provide the functionality you're looking for, plus it's just a cleaner implementation. If you can't use interfaces, use virtual and pure virtual declarations in your classes to provide a standardized forward declaration. Here's a link to an example: http://stackoverflow.com/questions/318064/how-do-you-declare-an-interface-in-c http://stackoverflow.com/questions/318064/how-do-you-declare...