Get premium membership and access questions with answers, video lessons as well as revision papers.

How does virtual function help achieve run-time polymorphism in a computer program?

      

How does virtual function help achieve run-time polymorphism in a computer program?

  

Answers


Davis
A virtual function supports run-time polymorphism through the use of base class pointers. When a base class pointer points to an object of a derived class containin g virtual function,the specific function called is determined by the type of object being pointed to.
Githiari answered the question on February 5, 2018 at 10:16


Next: Which are the common features of East African countries since independence
Previous: What is a pure virtual function in a computer program?

View More Computer Studies Questions and Answers | Return to Questions Index


Learn High School English on YouTube

Related Questions