This Is a Certified Answer

Certified answers contain reliable, trustworthy information vouched for by a hand-picked team of experts. Brainly has millions of high quality answers, all of them carefully moderated by our most trusted community members, but certified answers are the finest of the finest.
A schematic function for computer programming in which the linear concepts of procedures and tasks are replaced by the concepts of objects and messages is called virtual function.
It is used in class hierarchy in C++.I have provided the image below.
can u please explain it with example