Vidyalelo
C++ Programming · Q14

Polymorphism in C++

Programming · C++ Programming · question 14

Q14

In C++, can a function be both virtual and static at the same time?

A.
Yes
B.
No
Answer
C.
Yes, but only for member functions.
D.
Yes, but only for non-member functions.

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board