For long time I had a question �why Sun introduced Interface concept instead of C++ style of multiple inheritance?�. I did googling but many articles and forums talks about difference between abstract class and Interface not why Interface concept required in Java. After extensive search and analysis I came to know the reason behind the Interface concept in Java.
Hi Java does not support multiple inheritence because of its various disadvantages.One amoung them is Suppose a class Animal having public eat() method.2 other classes say Lion and Tiger extends this Animal class.Now there is also a third class Tigon which extends both Lion and Tiger.Now could you tell me if i call eat method in Tigon class then which one either from Lion or Tiger class?
I think it helps you better in understanding this .............
SCJP 5.0(75%), SCWCD 5.0(88%)
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Why multiple inheritance is not allowed in Java