why is multiple inheritance not allowed in java?
Answer Posted / haridini
Suppose if u inherit from multiple classes and in these
classes a method of same name exists then the class which
inherits from these classes gets confused that which one to
inherit. And this is also because of reducing complexity.
And above all u will get the multiple inheritance concept
in java through interfaced.
| Is This Answer Correct ? | 18 Yes | 6 No |
Post New Answer View All Answers
What are the wrapped, classes?
What are the difference between composition and inheritance in java?
how to create daemon thread in java?
Is ++ operator thread-safe in java?
When do we use synchronized methods in java?
How to compare strings in java?
What is a void in java?
What are the advantages of passing this into a method instead of the current class object itself?
Why vector class is used?
What is the r character?
What is class variable java?
What is a method in programming?
What is empty list in java?
What is a Presistent Object?
What is byte data type?