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 / shiva

multiple inheritance means a sub class which is derived from
two base classes.

assume that the two base classes has same methods with same
signature.
for eg we create an object for the base class.

now call the any one method of base class with sub class object.
now which method is going to execute?
To avoid this confusion java doesnot support multiple
inheritance.

Is This Answer Correct ?    22 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is fail fast in java?

1173


How many bits is a string?

1011


what is a working thread? : Java thread

1049


What is OOP's Terms with explanation?

1194


Write a program to solve producer consumer problem in java?

1022


What is a boolean used for?

1117


What does the string method compareto () do?

1063


What is the difference between overriding and overloading in OOPS.

1168


Which software is used for java programming?

1031


How to instantiate member inner class?

1086


What is a method declaration?

1005


What does those terms actually mean included in the j.d.k i.6?

2126


What is a java applet? What is an interface?

1103


Given a singly linked list, determine whether it contains a loop or not without using temporary space?

991


Can we extend immutable class?

1000