Safe Software interview question

What is the difference between a virtual and pure virtual function in C++?

Interview Answer

Anonymous

10 Dec 2017

In simplest terms, an abstract function contains an implementation body in the declaration and a pure virtual function does not. Thus, the abstract function MAY be overridden by the derived class whereas the pure virtual function MUST be overriden (implemented).