title: Returning a private vector
body: <p>I have a class with a private attribute that is a vector. What is the best way of doing a getter function?</p>
  
  <ol>
  <li>Return the whole vector: <code>vector&lt;char*&gt; getNames() { return names; }</code>
  <ul>
  <li>Would this return a copy or a pointer? Would this be accessible since its private?</li>
  </ul></li>
  <li>Return the iterator: <code>vector&lt;char*&gt;::iterator getNames() { return names.begin(); }</code></li>
  <li>Make the vector public
  <ul>
  <li>I know this is bad practice for OOP, just listing options.</li>
  </ul></li>
  </ol>