Examveda

Which of the following is true about virtual functions in C++?

A. They cannot be overloaded.

B. They can be static.

C. They are resolved at compile-time.

D. They are resolved at runtime.

Answer: Option D


Join The Discussion

Related Questions on Polymorphism in C plus plus

What is polymorphism in C++?

A. A feature that allows objects of different classes to have the same name.

B. A feature that allows functions to perform different tasks based on the object they are called with.

C. A feature that allows the same function to have different implementations.

D. A feature that allows inheritance of multiple classes.