Multiple choice technology programming languages

static keyword can be used with virtual functions.

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In C++, virtual functions rely on objects and the vtable associated with object instances. The static keyword implies association with the class rather than instances, so virtual functions cannot be declared as static.