Share
What is a virtual function in C++?
Question
can you help me with this question
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
can you help me with this question
Answer ( 1 )
In C++, a virtual function is a member function of a base class that can be redefined in derived classes. The virtual keyword is used to declare a virtual function in the base class.