title: C++ - construction of an object inside a class
body: <p>I'm fairly new to C++, and I'm not sure about this one. Have a look at the following example which sums up my current problem.</p>
  
  <pre><code>class Foo
  {
      //stuff
  };
  
  class Bar
  {
      Foo foo;
  };
  </code></pre>
  
  <p>So Bar constains a full Foo object, not just a reference or pointer. Is this object initialized by its default constructor ? Do I need to explicitly call its constructor, and if so, how and where ?</p>
  
  <p>Thanks.</p>