Vidyalelo
C++ Programming · Q6

Polymorphism in C++

Programming · C++ Programming · question 6

Q6

What is the use of the 'virtual' keyword in C++?

A.
It indicates that a function can be overridden in derived classes.
Answer
B.
It indicates that a function cannot be overridden in derived classes.
C.
It indicates that a function must be called in the derived class.
D.
It indicates that a function can be called from anywhere.

Answer: Option A

Solution

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