I'm not sure what you mean by "inherit" - either you want to be able to use the header in another file - or polymorphically inherit from another class.
1 2 3 4 5 6 7 8
//ClassA.h
#ifndef CLASS_A_H
#define CLASS_A_H
class ClassA
{
int a;
};
#endif
1 2 3 4 5 6 7 8 9 10 11 12
//ClassB.h
#ifndef CLASS_B_H
#define CLASS_B_H
#include "ClassA.h" // <-- This macro is a glorified copy and paste of ClassA.h
class ClassB : public ClassA
{
// ClassB "is a" ClassA
};
#endif