title: Shortest and best way to "reinitialize"/clean a class instance
body: <p>I will keep it short and just show you a code example:</p>
  
  <pre><code>class myClass
  {
  public:
    myClass();
    int a;
    int b;
    int c;
  }
  
  // In the myClass.cpp or whatever
  myClass::myClass( )
  {
   a = 0;
   b = 0;
   c = 0;
  }
  </code></pre>
  
  <p>Okay. If I know have an instance of myClass and set some random garbage to a, b and c.</p>
  
  <ul>
  <li>What is the best way to reset them all to the state after the class constructor was called, so: 0, 0 and 0?</li>
  </ul>
  
  <p>I came up with this way:</p>
  
  <pre><code>myClass emptyInstance;
  myUsedInstance = emptyInstance; // Ewww.. code smell?
  </code></pre>
  
  <p>Or..</p>
  
  <pre><code>myUsedInstance.a = 0; myUsedInstance.c = 0; myUsedInstance.c = 0; 
  </code></pre>
  
  <ul>
  <li>I think you know what I want, is there any better way to achieve this?</li>
  </ul>