Why multiple inheritances are not supported in Java
|Top Tutorials||New Tutorials||Submit||Login||Register|
Total Hits: 9789
Total Votes: 139 votes
Category: JAVA/Core JAVA
Submitted on: 2011-08-10 14:56:25
Submitted By: Javin Paul
Description:more convincing reason to me is that multiple inheritances does complicate the design and creates problem during casting, constructor chaining etc and given that there are not many scenario on which you need multiple inheritance its wise decision to omit it for the sake of simplicity. Also java avoids this ambiguity by supporting single inheritance with interfaces. Since interface only have method declaration and doesn't provide any implementation there will only be just one implementation of specific method hence there would not be any ambiguity. More detail...