Trusted by millions of Kenyans
Study resources on Kenyaplex

Get ready-made curriculum aligned revision materials

Exam papers, notes, holiday assignments and topical questions – all aligned to the Kenyan curriculum.

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

Answer Attachments

Exams With Marking Schemes

Related Questions