Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

why java does not support multiple inheritance

Answer Posted / sreekanta paul

In C++ when a subclass inherits a superclass then the name of superclass is specified.But in java it is quite confusing from which superclass a method will be inherited by the subclass.Suppose wo classes B and C inherit from A, and class D inherits from both B and C. If a method in D calls a method defined in A (and does not override the method), and B and C have overridden that method differently, then from which class does it inherit: B, or C?
Thats why in java the concept of Interface came to solve this problem.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are implicit objects in java?

971


How do I compare two strings in word in java?

984


What do you mean by local class?

1004


Explain where variables are created in memory?

1007


What is Recursion Function?

1188


Can a constructor call another constructor?

976


What is difference between core java and java ee?

891


How will you print number in reverse (descending) order in BST.

972


Why synchronization is important?

1018


What's the purpose of static methods and static variables?

1093


What is an enumeration?

1056


What does += mean coding?

925


Tell me a few examples of final classes defined in Java API?

1087


What is the technique adopted to create an immutable class?

1104


What is jagged array in java?

1077