Possible C++ Interview question: static functions and virtual

When declaring a static function could you declare it as a virtual?


Static functions are not related to objects so they would not be declared as a virtual.

Virtual functions are used with specific objects that determines which virtual function to call.


Comments (0)