employer cover photo
employer logo
employer logo

SMART Technologies

Is this your company?

SMART Technologies interview question

How virtual methods are implemented in C++

Interview Answer

Anonymous

12 Feb 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.