Can be declare a static function as virtual?

Total Post:21

Points:147
OOPS 
 2209  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

Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.