3 ms·
Slight detail: there only needs to be one instance of the vtable per class, and objects of that type only need to contain a pointer to it.
by binary132 3y ago
Slight detail: there only needs to be one instance of the vtable per class, and objects of that type only need to contain a pointer to it.
- Dwedit 3y agoAnd you can also make the vtable `const` so it goes into the read-only data section.