Stainless Games interview question

What is a virtual member function?

Interview Answer

Anonymous

19 Mar 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.