title: Deleting an object when multiple pointers are pointing to it?
body: <p>I've been told that when if I have multiple pointers pointing to the same object, I cannot delete it normally (using the delete keyword). Instead, I've been told that I need to set the pointers to NULL or 0.</p>
  
  <p>Given I have:</p>
  
  <pre><code>ClassA* object = new ClassA();
  ClassA* pointer1 = object;
  ClassA* pointer2 = object;
  </code></pre>
  
  <p>So to <code>delete</code> <code>pointer1</code> and <code>pointer2</code>, do I need to do the following?</p>
  
  <pre><code>pointer1 = 0;
  pointer2 = 0:
  </code></pre>
  
  <p>Once I've set it to NULL, do I still need to use the keyword <code>delete</code>? Or is just setting it to 0 good enough?</p>