Domanda di colloquio di MathWorks

What is a pure virtual function?

Risposta di colloquio

Anonimo

4 nov 2011

It's a function that is not given a definition and is set equal to 0. It is up to the class derived from the one containing the virtual function to give the function a definition. Also, a class with a virtual function cannot be instantiated.