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
What is protected in java?
How do you change an int to a string?
Can memory leak in java?
Explain the term virtual machine?
What is meant by binding in rmi?
How variables are stored in memory?
What’s the difference between constructors and other methods?
How do I know if java is installed?
What is an immutable object?
Discuss 2D arrays.
Can a class be private?
Explain java code for recursive solution's base case?
can any body body expalin best definitions & best real time exaples for opps concepts.
How can we pass argument to a function by reference instead of pass by value?
Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?