If i have the following class hierarchy:
class Base :
{
virtual void foo();
};
class Derived : public Base
{
void foo();
};
Is it possible under VC6 that Derived::foo() would no longer be
virtual? I was under the assumption that once a function has been
declared virtual in a base its virtualness follows it down the
hierarchy, but have been told otherwise with VC6.
Outside of making a class definition a bit clearer (not having to look
at parent class) i would think the virtual keyword in Derived is
redundant.
/todd