Virtual Function

Virtual Function:

A virtual function is a special type of member function which is start with keyword virtual and It is redefined in to the derived class. When we refer to a derived class object using  pointer or reference of the base class then we can call the virtual function for that object and execute the class’s version of function.

995 total views, 5 views today

Posted in

Leave a Reply