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
How many decimal digits is 64 bit?
What is an interoperable application in java ?
What's the default access specifier for variables and methods of a class?
What is meant by attribute?
Is string passed by reference in java?
what is thread? What are the high-level thread states? : Java thread
What is sorting in java?
How to print an arraylist in java?
What is an empty string in css?
Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?
What does s mean in regex?
How do you decide when to use arraylist and linkedlist?
Write an algorithm for quick sort?
Why is stringbuffer thread safe?
Do I need java on my pc?