title: Passing whole object vs passing object's property
body: <p>I'm thinking about the solution for my application. Here's the situation: I have a class with a method that takes ObjectA as an input parameter and calls several small methods. Each one of these methods needs some parts of the ObjectA (they don't overlap, i.e. <code>method1()</code> needs <code>ObjectA.field1</code> and <code>ObjectA.field2</code>, <code>method2()</code> needs <code>ObjectA.field3</code> and so on...)</p>
  <p>Given the general good code practices and performance, is it better to pass ObjectA to each one of these methods so they can extract the value they need on their own or is it better just pass them values? I mean:</p>
  <pre><code>method1(ObjectA);
  method2(ObjectA);
  </code></pre>
  <p>or</p>
  <pre><code>method1(Object1.getField1(), ObjectA.getField2());
  method2(ObjectA.getField3());
  </code></pre>