Home > DeveloperSection > Forums > Can be declare a static function as virtual?
Somesh

Total Post:21

Points:147
Posted on    March-29-2011 7:07 AM

 OOPS OOPS 
Ratings:


 1 Reply(s)
 1365  View(s)
Rate this:
Can be declare a static function as virtual?
please give the reason also.
thanks


Amit Singh

Total Post:103

Points:721
Posted on    March-29-2011 8:15 AM

NO,
Reason:
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.

Don't want to miss updates? Please click the below button!

Follow MindStick