Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4
Simple commented code about it: https://code.sololearn.com/cK1wVF5rxldO/?ref=app
3rd Jun 2018, 7:19 PM
KrOW
KrOW - avatar
+ 2
it just ensures that there is only one copy of the base class in the inherited objects, you don‘t really need to understand it further than that, but basically you get a vtable for each object you inherit from, but since the objects inherit virtually from the base class you only get one instance of the base class instead of one for every vtable
3rd Jun 2018, 6:50 PM
Max
Max - avatar