How shall I implement operator overloading in base class for base class part of derive class object?
<p>How shall I implement operator overloading in base class for base class part of derive class object?</p>

<p>Please see this sample  code and implement base class part to implement * operator on derive class object</p>

<pre><code>class base {
     int x;
public:

};

class der : public base {
    int y;
public:
    const der operator*(const der&amp; rh) {
        der d;
        d.y = y * rh.y;
        return d;
    }

};
</code></pre>
