Why java will not support multiple inheritance like C++?
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.
More Related Questions and Answers ...
The information post by website user , we not guarantee correctness.
Dental Treatment Skin Whitening Skin Problems Skin Rashes Shoes
