Question d’entretien chez SMART Technologies

How virtual methods are implemented in C++

Réponse à la question d'entretien

Utilisateur anonyme

12 févr. 2014

When a class has virtual methods, it gains a vpointer to the class' vtable. At runtime, the vpointer is followed to the vtable, and from there the appropriate method is fetched.