VC++ - Visual C++ - Microsoft Visual C++ Interview Questions And Answers
Can we declare a static function as virtual?
No. The virtual function mechanism is used on the specific object that determines which virtual function to call. Since the static functions are not any way related to objects, they cannot be declared as virtual.
Share to Twitter
Share to Facebook
Share to Pinterest
Post a Comment
Post Comments (Atom)