title: Conflicts between member names and constructor argument names
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/885136/members-vs-method-arguments-access-in-c">Members vs method arguments access in C++</a>  </p>
  </blockquote>
  
  
  
  <p>I have a class that has some members, like <code>x</code>, <code>y</code>, <code>width</code> and <code>height</code>. In its constructor, I wouldn't do this:</p>
  
  <pre><code>A::A(int x, int y, int width, int height)
  {
      x = x;
      y = y;
      width = width;
      height = height;
  }
  </code></pre>
  
  <p>This doesn't really make sense and when compiled with g++ <code>x</code>, <code>y</code>, <code>width</code>, and <code>height</code> become weird values (e.g. <code>-1405737648</code>).</p>
  
  <p>What is the optimal way of solving these naming conflicts?</p>