MathWorks interview question

What is a pure virtual function?

Interview Answer

Anonymous

Nov 4, 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.