Can be declare a static function as virtual?

Total Post:21

Points:147
OOPS 
 1975  View(s)
Ratings:
Rate this:
Can be declare a static function as virtual?
please give the reason also.
thanks
  1. Post:103

    Points:721
    Re: Can be declare a static function as virtual?

    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.

      Modified On Mar-29-2018 04:01:12 AM

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!