Why java will not support multiple inheritance like C++?

 Dont Buy Textbooks. Rent 'EM Save 60-80%



java supports multilevel inheritance but not multiple inheritance is there any specific reason explain me plz(if possible)?.

Why java will not support multiple inheritance like C++?c++ reference



The reasons for omitting multiple inheritance from the Java language mostly stem from the "simple, object oriented, and familiar" goal. As a simple language, Java's creators wanted a language that most developers could grasp without extensive training. To that end, they worked to make the language as similar to C++ as possible without carrying over C++'s unnecessary complexity.

In the designers' opinion, multiple inheritance causes more problems and confusion than it solves.

However, you can use multiple interface inheritance through the use of interfaces. Multiple interface inheritance allows an object to inherit many different method signatures with the caveat that the inheriting object must implement those inherited methods.

Why java will not support multiple inheritance like C++?c++ faq



With multiple inheritance, you can inherit the same class many times from different sources.

For instance, if we wanted to create a fuctionous James Bond like vehicle that is an automobile and drives like a car. Can change to a boat and travel on water, can change to a submarine and travel underwater, and it can also grow wings and fly in the air.


FirstPrevious12NextEnd

More Related Questions and Answers ...
  • Merits and demeritsof private inheritance in ..
  • Inheritance with C++ (type casting)?
  • What is Inheritance in C++ language?
  • Error in Private Inheritance in C++..PLEASE t..
  • Would u pls explain Inheritance in C#?
  • What r the diff Types of Inheritance in C#?
  • What are the advantages and disadvantages of ..
  • Can somebody give me an example on polymorphi..
  • Is there an inheritance for angelica c metzga..
  • Can Anyone explain in detail the inheritance(..
  • I want a simple c++ program on hierarchical i..
  • Wrte a c++ pgm using hierarchical inheritance..
  • Can u please help writting a c++ pgm for mult..
  • What is inheritance? Define Public and Privat..
  • Write a c++ pgm to demonstrate multilevel inh..
  • I need expert advice to create a barcode syst..
  • What's the inheritance tax due on a ..
  • What are real time examples of Inheritance, P..
  • What are "Real Time" examples? Give..

  • The information post by website user , we not guarantee correctness.

    

    Dental Treatment Skin Whitening Skin Problems Skin Rashes Shoes