operator= in c++
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3882186/trouble-with-inheritance-of-operator-in-c">Trouble with inheritance of operator= in C++</a>  </p>
</blockquote>



<p>hello everyone, let's assume I have two classes:</p>

<pre><code>Base{}; //inside I have operator=
Derived{}; //inside I don't have operator=
</code></pre>

<p>why this one is working perfectly:</p>

<pre><code>Derived der1, der2;
der1=der2;  //&lt;-here I know that it actually calls my Base::operator=
</code></pre>

<p>and this one is not:</p>

<pre><code>Derived der1;
Base bas1;
der1=bas1;  //&lt;-here why can't call Base::operator=?
</code></pre>
