|
|
|
|
|
by zozbot234
301 days ago
|
|
This is not quite correct. OOP implementation inheritance involves a kind of "open recursion" (that is, calls to base-class methods can end up dispatching to implementations from a derived class) that is not replicated with pure composition. All method calls, including method calls that originate from code in some class anywhere in the hierarchy, ultimately dispatch through the vtable of whatever object they're called on. |
|
When a method is never overridden, it doesn't need to be in the vtable.