TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
C++ Coding Standard

Rule:  INT#027Checked automatically with code checker

Synopsis:In a derived class, if you override one of the base class's virtual functions, then you shall declare that overriding function explicitly as virtual
Severity Level:2
Category:Class Interface


It is not possible to remove the virtual-ness of an inherited virtual function: any virtual function overrides itself. This rule makes explicit that the function that overrides a virtual function is virtual too, which it would also have been if the overriding function were not declared as such.