c++ virtual functions in inheriting class
<p>I know that when you want to declare a polymorphic function you have to declare the base class function virtual.</p>

<pre><code>class Base
{
public:
    virtual void f();
};
</code></pre>

<p>My question is are you required to declare the inheriting class function as virtual, even if it's expected that Child behaves as if it were "sealed"?</p>

<pre><code>class Child : public Base
{
public:
    void f();
};
</code></pre>
