zen29sky
2007-12-17 00:16:49 UTC
class Base {
virtual void doSomething();
}
(A) Should my derived class be like this:
class Derived : public Base
{
void doSomething();
}
Or (B) does the derived class also need the work virtual:
class Derived: public Base
{
virtual void doSomething();
}
Would (A) behave differently than (B) ?