Can we declare a static function as virtual?

Total Post:119

Points:835

 3369  View(s)
Ratings:
Rate this:

hi every one

Can we declare a static function as virtual?

thanks

  1. Re: Can we declare a static function as virtual?

    hi Goti,

    according your question, can we declare a static function as virtual?, answer is

    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.

      Modified On Mar-29-2018 05:33:42 AM

Answer

Please check, If you want to make this post sponsored

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