How to deal with codependent classes in c++
<p>I have class1 that needs header of class2.And class2 that needs header of class1 to be included.  </p>

<p>I included header of class2 in class1 and header of class1 in class2 and troubles began (in class2 I get error that says that class1 instance do not name a class)</p>

<p>Please can someone explain how to deal with this situation because I googled this question but didn't get what to do</p>

<p>thank you</p>