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 not supproting multiple inheritance?

Answer Posted / tulasi prasad

java does not support multiple inheritance directly because


if we r deriving a sub class from 2 super classes which are
as follows

class A
{
void meth()
{
// substraction;
}
}

class B
{
void meth()
{
// Addition;
}
}

class C extends A,B
{
meth()<--- system get into confusion whether its add
or substarct.
}

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between private & public & friendly classes?

1016


Define the term string pool?

955


Write a code to show a static variable?

1033


Can we declare array without size in java?

959


How do you do absolute value in java?

924


What does || mean in code?

991


Can we declare an array without size in java?

922


Explain listiterator and methods in listiterator?

958


Define array. Tell me about 2-D array.

997


What is the difference between this() and super() in java?

984


Why is a constant variable important?

896


What are the advantages and disadvantages of reference counting in garbage collection?

971


What is the java idl system?

988


What is enhanced loop in java?

930


What is the difference between object oriented programming language and object based programming language?

944