Default pure virtual implementation C++
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2089083/pure-virtual-function-with-implementation">pure virtual function with implementation</a>  </p>
</blockquote>



<p>I have a base class which has a function called <code>time()</code>.<br>
My idea is to have a pure virtual function which all the classes that inherits from it must implement.<br></p>

<p>However I also want to add the default behavior; Whoever calls <code>time()</code> function needs to print "hello".
<br>
Is that possible? </p>
