Intermediate C++
Q48 / 100

What is the vtable?

Correct! Well done.

Incorrect.

The correct answer is B) A per-class table of function pointers used to resolve virtual function calls at runtime

B

Correct Answer

A per-class table of function pointers used to resolve virtual function calls at runtime

Explanation

Each class with virtual functions has a vtable. Each object has a vptr pointing to its class's vtable. Virtual calls are resolved via indirection through the vtable.

Progress
48/100