C++ extend inherited functions
<p>considering a simple inherited class:</p>

<pre><code>class Base 
{
  void func() {
     cout &lt;&lt; "base" &lt;&lt; endl;
  }
};

class Derived : public Base
{
  void func() {
      cout &lt;&lt; "derived" &lt;&lt; endl;
  } 
};
</code></pre>

<p>if I run Derived::func() I get </p>

<pre><code>derived
</code></pre>

<p>I would like to modify this code to get</p>

<pre><code>base
derived
</code></pre>

<p>Something more similar to an extension than an overriding.</p>

<p>I've been able to get something similar with constructors, but not with normal functions.</p>

<p>Many thanks, 
 Lucio</p>
