Frage im Vorstellungsgespräch bei MathWorks

What is a pure virtual function?

Antwort im Vorstellungsgespräch

Anonym

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.