Question: Can we declare a static function as virtual?
Answer: August 20th, 2009 by sd | Posted in Uncategorized
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. VC++ FAQ’s And Interview Questions and Answers
Question:
Can we declare a static function as virtual? Answer:
August 20th, 2009 by sd | Posted in Uncategorized
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. VC++ FAQ’s And Interview Questions and Answers