title: How do I instantiate an object inside of a C++ class?
body: <p>For C++ learning purposes, I have the files <code>class1.h</code>, <code>class1.cpp</code>, <code>class2.h</code> and <code>class2.cpp</code>. I would like to instantiate an object named <code>class1Obj</code> inside <code>class2</code>.  Where and how do I instantiate this object? Do I instantiate <code>classObj</code> inside the <code>class2</code> constructor?</p>
  
  <p>In the past I have created a pointer to a class, which worked well for that time, but I think a pointer is not the route I should take this time because the <code>classObj</code> will only be used inside <code>class2</code>.</p>