Which of the following is not correct for a virtual function in C++?
Which of the following is not correct for a virtual function in C++?
- A.
Virtual functions can be declared in public, protected, or private sections of a class.
- B.
A virtual function can be static.
- C.
Virtual functions can be accessed using pointers or references.
- D.
A virtual function is declared in a base class so derived classes can override it.
Attempted by 240 students.
Sign up free to check your answer
Sign up freeLoading lesson…

