1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
struct A { virtual void foo(); virtual void bar() = 0; virtual void baz() const { } }; struct B : public A { virtual void foo() override; void bar() override { } void baz() const override { } };