Question d’entretien chez Safe Software

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

Réponse à la question d'entretien

Utilisateur anonyme

10 déc. 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).