Virtual Functions in C++ — vtables, Pure Virtual Functions, and Abstract Classes
One virtual function grew a class from 4 bytes to 16. Three kept it at 16. What vtables cost, measured, plus the destructor rule nobody mentions.
One virtual function grew a class from 4 bytes to 16. Three kept it at 16. What vtables cost, measured, plus the destructor rule nobody mentions.