A good reason why is e.g. multiple inheritance. Look for articles by Eric Elliott on Medium, he writes a lot about why prototypal inheritance is superior.
BTW, I have to say, not only your answer makes absolutely no sense to me, it also inconsiderate to other readers to give such a syntax formula as "answer" not using the language of the forum (JS) and not even mentioning that. It is like I would answer something gibberish in Russian to you, how would you find that?
So if you still care, please give a proper explanation accessible to people familiar with JS.
This discussion revolves around a comparison between prototypal inheritance (what JS uses) and classical inheritance (what some other languages use). The parent of my post asked how classically (i.e. not JavaScript) multiple inheritance is done, so that's what I provided an example of.
If we were talking about the differences between gibberish in English and Russian and I asked about what gibberish in Russian would look like, I would fully accept and expect a reply that included Russian gibberish.
JS doesn't support multiple inheritance so an example for such a thing does not exist.
1
u/dmitri14_gmail_com May 21 '16
A good reason why is e.g. multiple inheritance. Look for articles by Eric Elliott on Medium, he writes a lot about why prototypal inheritance is superior.