title: Different methods for instantiating an object in C++
body: <p>What is the difference between this:</p>
  
  <pre><code>Myclass *object = new Myclass();
  </code></pre>
  
  <p>and</p>
  
  <pre><code>Myclass object = new Myclass();
  </code></pre>
  
  <p>I have seen that a lot of C++ libraries like wxWidgets, OGRE etc use the first method... Why?</p>