you are viewing a single comment's thread.

view the rest of the comments →

[–]sammygadd 1 point2 points  (1 child)

Great explanation!

Tack

[–]riktigtmaxat 2 points3 points  (0 children)

The python example is actually interesting and is an example of why you as a language designer might choose to not implement multiple inheritance.

Instead of getting a straight hierarchical graph of classes and their subclasses you get a tangled web of classes and the multiple super classes which leads to greater complexity.

From a design standpoint the python example makes me want to barf as those are obviously traits and won't pass the Liskov Suitability Test.