Virtual Function in C++

Published: 16 April 2020
on channel: Pradeep
35
7

A simple example of virtual function.
It has a base class with a virtual function display() and a child class with a member function display().
Child inherits base publicly.
A run time pointer to base object stores address of child object.
that's why it executes display() of child.


On this page of the site you can watch the video online Virtual Function in C++ with a duration of hours minute second in good quality, which was uploaded by the user Pradeep 16 April 2020, share the link with friends and acquaintances, this video has already been watched 35 times on youtube and it was liked by 7 viewers. Enjoy your viewing!