Answer: Virtual function are the function which are declared with the virtual keyword .It is declared in the base class.
Explanation: Virtual function is sort of member function that is present in the base class and is responsible for checking that right function is being called whatever pointer may be used for function call.
Main feature of the virtual function is that it can be overridden or replace the member function of the base class .It is a member function which has the capability of being redefined again in the other class.