C++ Object Class
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/6779645/use-of-this-keyword-in-c">Use of &ldquo;this&rdquo; keyword in C++</a>  </p>
</blockquote>



<p>If I write these two C++ classes:</p>

<pre><code>class A
{

 public:
   const std::string getParam1()
   {
     return _param1;
   }

   void setParamA(std::string param1)
   {
     _param1=param1;
   }

 private:
   std::string _param1;
   std::string param2;
};
</code></pre>

<p>and </p>

<pre><code>class A
{

 public:
   const std::string getParam1()
   {
     return _param1;
   }

   void setParamA(std::string param1)
   {
     this-&gt;_param1=param1;
   }

 private:
   std::string _param1;
   std::string param2;
};
</code></pre>

<p>What is the difference between:</p>

<pre><code>   void setParamA(std::string param1)
   {
     _param1=param1;
   }
</code></pre>

<p>and </p>

<pre><code>   void setParamA(std::string param1)
   {
     this-&gt;_param1=param1;
   }
</code></pre>

<p>Thanks.   </p>
