Vidyalelo
C++ Programming · Q24

Object Oriented Programming in C++

Programming · C++ Programming · question 24

Q24

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

A.
To create class-level variables and functions
B.
To allocate memory dynamically
C.
To enable polymorphism through function overriding
Answer
D.
To specify the type of a variable

Answer: Option C

Solution

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