What does a virtual function ensure for an object, among the following?
- Correct method is called, regardless of the class defining it
- Correct method is called, regardless of the object being called
- Correct method is called, regardless of the type of reference used for function call
- Correct method is called, regardless of the type of function being called by objects
(c).Correct method is called, regardless of the type of reference used for function call
need an explanation for this answer? contact us directly to get an explanation for this answer