I am reading "Inside the C ++ Object Model", trying to understand how multiple and virtual inheritance is achieved through vtables. (I understand that one polymorphism is excellent, good).
I am having difficulty understanding what exactly is done when the method should be located during virtual inheritance or during casting, because there are many offset calculations that need to be performed.
Will someone help with understanding how multiple vtables are used in the example with multiple or virtual inheritance? If I could understand the layout and the problem, I probably could better understand this problem.
c ++ inheritance polymorphism multiple-inheritance virtual-inheritance
mezamorphic
source share