title: When using inheritance is it necessary to "#include" the header file of child's parent class. C++
body: <p>I'm working on a multiple inheritance project in C++. I have separate files for class definitions (.h) and implementations (.cpp). Since this is the first time I've used inheritance in C++ (the rest of our assignments have been in C#) somethings are a little unclear.</p>
  
  <p>Do I need to <code>#include "parent.h"</code>  in <code>child.cpp</code>, or is it sufficient to have defined the inheritance relationship in <code>child.h</code> ie:</p>
  
  <pre><code>class child : parent 
  { 
       // child class definition
  };
  </code></pre>
  
  <p>I was warned by an automated prompt that this might be a subjective question, so let me be explicit: I'm asking if this is a <em>functional requirement</em> for the inheritance to work properly, not if it's "good form" or anything along those lines.</p>