Can static functions be virtual in C++?
In C++, a static member function of a class cannot be virtual. For example, below program gives compilation error.
Also, static member function cannot be const and volatile. Following code also fails in compilation.
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.