Imagine having the following classes:
class A {
virtual void foo();
};
class B : public A {
virtual void foo() override;
};
I know that using 'override' prevents broken polymorphism. But is it good style to still add the 'virtual' keyword to the derived method?