Introduction to OOP Chapter 27: Implementation : next previous audio real text

Method Calls Become Indexed Offsets

Each object maintains a pointer to a table, called the virtual method table.

Virtual methods are identified by a fixed address in this table.

A method call, such as, C)

is translated into

(* A.virTable[idx])(A, B, C)
Intro OOP, Chapter 27, Slide 13