Include headers of both base and inherited class in main
<p>I have a class <code>calendar</code> and a class <code>extendedCalendar</code> that inherits from <code>calendar</code></p>

<p>I want to be able to create objects of both classes in main, so i include both of their headers in <code>main.cpp</code> :</p>

<pre><code>#include "calendar.h"
#include "extendedCalendar.h"
</code></pre>

<p>The problem is that <code>extendedCalendar.h</code> also has <code>#include "calendar.h"</code> in its header so compiler gives me an error:</p>

<blockquote>
  <p>'calendar' : 'class' type redefinition</p>
</blockquote>

<p>How can i circumvent this ?</p>
