Can we declare a static function as virtual?

Total Post:119

Points:835
 3117  View(s)
Ratings:
Rate this:

hi every one

Can we declare a static function as virtual?

thanks

  1. Post:604

    Points:4228
    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