title: C++ Pointer: changing the contents without changing the address?
body: <pre><code>MyCustomObject * object=new MyCustomObject();
  </code></pre>
  
  <p>Assume the object pointer is used by many of my classes, but all of a sudden I want to change the contents of the pointer without changing the address.</p>
  
  <p>Am I wrong in thinking that <code>object = new MyCustomObject()</code> will give a new pointer address to the object? I want the new object without changing the pointer address (Yes, I will make sure to clean the old object).</p>