#ifndef RESOURCE_H_ #define RESOURCE_H_ class Resource { protected: int blubb; public: Resource(int blah); virtual ~Resource(); virtual int getblah(); }; #endif /*RESOURCE_H_*/ // Resource.cpp #include "Resource.h" Resource::Resource(int blah) { blubb = blah; } int Resource::getblah() { return blubb; } #ifndef HUMANRES_H_ #define HUMANRES_H_ #include "Resource.h" class HumanRes : public Resource { public: HumanRes(int blah) : Resource(blah) { }; ~HumanRes(); }; #endif /*HUMANRES_H_*/