Pergunta de entrevista da empresa Safe Software

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

Resposta da entrevista

Sigiloso

10 de dez. de 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).