According to Wikipedia , in this example:
struct Base {
virtual void some_func(float);
};
struct Derived : Base {
virtual void some_func(float) override;
};
I thought that is overridenot a C ++ keyword, so what does that mean? We can achieve the same without this keyword, so why would anyone need this?
There is also a keyword finalthat does not yet work on VS2010:
struct Base1 final { };
struct Derived1 : Base1 { };
source
share