Daily bit(e) of C++ | override specifier
Daily bit(e) of C++ #111, The C++11 override specifier
The override specifier (C++11) denotes a virtual method intended to override.
If the compiler does not find a corresponding virtual method in one of the base classes, it will treat the override specifier as an error.
Follow this guideline (see C.128 in Core Guidelines):
when introducing a new virtual method, use only the virtual keyword
when overriding an existing method, use only the override specifier
This is great. Would have been better if final also in the same article.