title: C++, using this to call a constructor from itself
body: <p>I was writing some java last night and I had two constructors that looked basically alike, except my default constructor provided some values to my object, it was something like this:</p>
  
  <pre><code>testObject(){
       width=5;
       height=12;
       depth=7;
       //other stuff is the same as the next one
  }
  
  testObject(int x, int y, int z){
      width=x; 
      height = y;
      depth = z;
      //All the other stuff is the same as default
  }
  </code></pre>
  
  <p>So in this case, I was able to convert the code to do this instead:</p>
  
  <pre><code>testObject(){
      this(5,12,7);
  }
  </code></pre>
  
  <p>That sent the values from the default constructor back to the constructor as the 3-int constructor to be built as such.   Is there any way to get this type of functionality in C++?</p>