//This file is error.h. #ifndef ERRORH #define ERRORH class error { public: virtual void print() const = 0; }; #endif