what does const mean in c++ in different places
<p>What is the difference between </p>

<pre><code>    const string&amp; getName() const {return name;}
</code></pre>

<p>and </p>

<pre><code>    string&amp; getName() const {return name;}
</code></pre>

<p>What does const mean at the beginning and at the end? </p>
