A virtual function in C++ is a member function of a base class that can be redefined in a derived class to create polymorphism. The virtual keyword can be used to declare the function in the base class.
Vishalini.R Answered question
Not a member yet? Register now
Are you a member? Login now