Sollicitatievraag bij Arm

What is virtual function

Antwoord op sollicitatievraag

Anoniem

31 jan 2017

A virtual function is a member function that you expect to be redefined in derived classes. When you refer to a derived class object using a pointer or a reference to the base class, you can call a virtual function for that object and execute the derived class's version of the function.