Best example of multiple inheritance ever (thanks to Jean Bézivin)

Tweet about this on TwitterShare on FacebookBuffer this pageShare on RedditShare on LinkedInShare on Google+Email this to someone

I´m reproducing a picture that Jean posted in google plus to exemplify multiple inheritance.

I don’t like the mechanism of multiple inheritance (at the conceptual level is sometimes useful but too easy to get it wrong and at the implementation level is just a nightmare since most technologies do not support it so you are forced to find a workaround for it), this examples shows that sometimes is a very elegant solution to express the relationship between a set of concepts. What about you? Do you use multiple inheritance in your models? If so, how do you then deal with it during code-generation?

UPDATE: Via Jean, another great graphical example of multiple inheritance (Jean says that “the drawing below is composed from a Venn Diagram of Twitter@@LeBlancRose_”).

Tweet about this on TwitterShare on FacebookBuffer this pageShare on RedditShare on LinkedInShare on Google+Email this to someone
Comments
  1. Cesar Gonzalez-Perez
    • jordi
  2. Andrea Baruzzo
    • jordi
  3. Ali Koudri
    • jordi
  4. Keith Duddy

Reply

Your email address will not be published. Required fields are marked *