Skip to main content
2 events
when toggle format what by license comment
Nov 10, 2017 at 18:25 comment added supercat The real cost of multiple inheritance lies in the fact it's not possible to uphold both of the following guarantees: (1) If a member of base-class B is overridden in middle class M, then B's version of that member will only be accessible through M's override; (2) given any reference of type T, converting it to any super-type and back to T will yield a reference equivalent to the original. Both of those guarantees are useful, and supporting multiple inheritance would require giving up at least one.
Nov 9, 2017 at 14:30 history answered Walfrat CC BY-SA 3.0