2 ms·
Implementation inheritance is not "simple" at all. It's not just "rebundling" class methods, it allows the 'rebundling' to happen at some arbitrary place in the
by zozbot234 6y ago
Implementation inheritance is not "simple" at all. It's not just "rebundling" class methods, it allows the 'rebundling' to happen at some arbitrary place in the class hierarchy in a way that inherently involves dynamic dispatch/late binding for every method (virtual) call. (Unless the set of callers and derived classes is entirely known in advance and can be dealt with via devirtualization, of course.) That's a very loose semantics, and it's no wonder that developers find it "hard" to reason about.