Why multiple inheritace is not supported through classes in java ?

Showing Answers 1 - 1 of 1 Answers

shanthini

  • Nov 6th, 2005
 

java does not support Multiple inheritance because

1. If the two super classes(multiple interitance contain more than one super class) has same method, there is confusion in accessing the method

2. in other hand, in the same scenrio, the first super class method method alone will be called always.

3. Final and most important reason is,there is chance for code

    ambiguity.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions