In C++, a virtual function is a base class member function that can be redefined in a derived class to provide polymorphism. Using the virtual keyword, you can declare the function in the base class.
Vishalini.R Answered question June 27, 2023
Not a member yet? Register now
Are you a member? Login now