4 ms·
Only classes with one or more virtual functions have virtual method table. Objects of such classes are called polymorphic objects and they (and only they) have
by protomolecule 4y ago
Only classes with one or more virtual functions have virtual method table. Objects of such classes are called polymorphic objects and they (and only they) have hidden pointer to virtual method table.
https://en.cppreference.com/w/cpp/language/object#Polymorphic_objects https://en.cppreference.com/w/cpp/language/object#Polymorphi...