What does a virtual function ensure for an object, among the following?
(a) Correct method is called, regardless of the class defining it
(b) Correct method is called, regardless of the object being called
(c) Correct method is called, regardless of the type of reference used for function call
(d) Correct method is called, regardless of the type of function being called by objects
The question was posed to me in an online interview.
This intriguing question originated from Virtual Functions in portion Member Functions & its Types of Object Oriented Programming