What is the role of the 'virtual' keyword in function declaration in C++?
A. It indicates that the function can be accessed globally.
B. It indicates that the function can be overridden in derived classes.
C. It indicates that the function is immutable.
D. It indicates that the function has no return type.
Answer: Option B

Join The Discussion