Should A method takes some properties from an object or just take the object?
<p>For example </p>

<pre><code>        int GetNum(int x, int y)
              {
                  return x+y;
               }
</code></pre>

<p>then call</p>

<pre><code>         z= GetNum(myobject.x, myobject.y);
</code></pre>

<p>or</p>

<pre><code>         int GetNum(ClassA myobject)
              {
                  return myobject.x+myobject.y;
               }
</code></pre>

<p>then call</p>

<pre><code>          z = GetNum(myobject);
</code></pre>
