"Mike Smith" <mi*******************@acm.DOT.org> wrote in message news:vr************@news.supernews.com...
EventHelix.com wrote:
What's in a name? Virtual is a misleading keyword for overridable
It's more than that. Non-virtual functions can be overridden, too. The
difference is *polymorphism*.
Non-virtual functions are not overriden. The definition of override in C++
is based on virtual functions (10.3/2):
If a virtual member function vf is declared in a class Base and in a class Derived, derived directly or
indirectly from Base, a member function vf with the same name and same parameter list as Base::vf is
declared, then Derived::vf is also virtual (whether or not it is so declared) and it overrides Base::vf.