title: Delayed constructor in C++
body: <p>I have been reviewing some code that looks like this:</p>
  
  <pre><code>class A; // defined somewhere else, has both default constructor and A(int _int) defined
  class B
  {
  public:
      B(); // empty
      A a;
  };
  
  int main()
  {
       B* b;
       b = new B();
       b-&gt;a(myInt); // here, calling the A(int _int) constructor,
       //but default constructor should already have been called
  }
  </code></pre>
  
  <p>Does this work? Calling a specific constructor after the default has already been called?</p>