C++ class variables as method parameters?
<p>When we are defining the method of a class, is it alright if we use the class variables (whether public or private) as  the method's-parameters? </p>

<p>In other words which one would be "more correct?"</p>

<p>Having defined ,</p>

<pre><code>class myclass{
public:
    int x, y;
    double foo(int, int, int);
private: 
    int z;

}
</code></pre>

<p>is this ok </p>

<pre><code>double myclass::foo(int x, int y, int z) {/* Blah Blah */}
</code></pre>

<p>or </p>

<pre><code>double myclass::foo(int xx, int yy, int zz){x=xx; y=yy; z=zz  /*  Blah Blah*/}
</code></pre>
