// IComponent.h class IComponent { public: virtual void Debug(void); }; // IComponent.cpp void IComponent::Debug(void) { } // MyComponent.h class MyComponent : public IComponent { // note no implementation of Debug // or modification of this file is needed }; // main.cpp int main(void) { MyComponent component; component.Debug(); return 0; }