Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

1
  • 4
    You're talking about multiple levels of single inheritance, where you're absolutely right, but the OP is about multiple inheritance. If you implement 5 unrelated interfaces, you have 5 unrelated base class subobjects in your derived class object, and each of those subobjects needs to be a valid object with its own base class-compatible vtable pointer. They can't overlap or share a single vtable pointer because any code taking a pointer to the abstract base type must be able to use it as such. Commented Oct 11, 2018 at 9:37