CAN WE DECLARE A STATIC FUNCTION AS VIRTUAL?

Goti Bandu

Total Post:119

Points:835
Posted by  Goti Bandu
 2873  View(s)
Ratings:
Rate this:

hi every one

Can we declare a static function as virtual?

thanks

  1. AVADHESH PATEL

    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.

Answer

NEWSLETTER

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