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 )
A C++ virtual function isĀ a member function in the base class that you redefine in a derived class. It is declared using the virtual keyword. It is used to tell the compiler to perform dynamic linkage or late binding on the function.