In a loop, should I reuse a single class instance, or create new ones?
<p>for example</p>

<pre><code>  Aclass myAclass = new Aclass();
  for(int i=0;i&lt;n;i++)
  {
     myAclass.load(i);
     myAclass.do();
     myAclass.clear()  // clear the state of myAclass, rdy for next iteration.
  }
</code></pre>

<p>or what if I embed the `myAclass.load() into the class constructor, and do sth like:</p>

<pre><code>   for(int i=0;i&lt;n;i++)
   {
      Aclass myAclass = new Aclass(i);
      myAclass.do();
   }
</code></pre>

<p>So which way is better practice?
btw, the title seems not fitting the content, help me with a more appropriate title.</p>

<p>Note:  Constructor of Aclass is trivial, Load() is not, Clear() is trivial
(of course the constructor in the 2nd example is not trivial as it triggers Load().)</p>
