Sollicitatievraag bij Stainless Games

What is a virtual member function?

Antwoord op sollicitatievraag

Anoniem

19 mrt 2020

A virtual member is a method in a derived class that over-rides a method in lower down the class hierachy. A pure virtual function is defined in such a way that it is set to the value zero (without an implementation), such that derived classes must implement a method with the same signature. This used for creating standardised interfaces.