Which C++ keyword allows a base class function to be overridden and resolved at run time?
Correct answer A. virtual
Explanation
Declaring a function virtual enables dynamic binding, so a call through a base class pointer or reference runs the derived class version.
Answer checked How we write and check questions
Discussion