can anyone tell me why java doesnt support multiple inheritances........? -


i tried create calc class have methords of mathematical operators not in java already..........

now after created ....if wat use class functions have make super class new program .....if want new program have multiple attributes of diffrent classes .........and simultaneously use calc functions........but cant..............

why java doesnt have multiple inheritances.......what advantages , disadvantages?

tnx in advanced...

java doesn't support multiple inheritance because of "diamond problem" , other problems arise "increased complexity , ambiguity" explained in wikipedia page on matter

the creators of java had design goal of simplicity. why operator overloading added complexity of "copy constructor" left out. why there automatic memory management etc etc

most modern languages chose discard concept same reason.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -