Pregunta de entrevista de Safe Software

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

Respuesta de la entrevista

Anónimo

10 dic 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).