First page Back Continue Last page Graphics
Virtual Costs
Each object has its size increased by the amount needed to hold an address.
For each class, the compiler creates a table (an array) of addresses of virtual functions.
For each function call, there's an extra step of going to a table to look up an address.