variable declared in member function is same as member variable
<p>wondering whether this gonna work, and how:</p>

<pre><code>class sample
{
 int i;
 int func1()
  {
   int i = 0;
   i++;
   return i;
  }
}
</code></pre>

<p>reason I ask is because I have many member functions and bad name conventions.</p>
