why java does not support multiple inheritance
Answer Posted / sskur
To say why java doesn't support inheritance directly like c++
should be the diamond problem faced by c++,
(Diamond problem is an ambiguity that arises when two
classes B and C inherit from A, and class D inherits from
both B and C. If a method in D calls a method defined in A
(and does not override it), and B and C have overridden that
method differently, then via which class does it inherit: B,
or C?)
| Is This Answer Correct ? | 206 Yes | 22 No |
Post New Answer View All Answers
What is the nested interface?
What is the independent variable in an experiment?
What is basic syntax?
What is super constructor?
What data type is true or false?
What is binary tree in java?
Explain aggregation in java?
Does a function need a return?
How do you read and print a string in java?
What is classes in java?
What is java life cycle?
What is difference between fileinputstream and filereader in java?
Explain the concept of proper inheritance?
Does substring create a new object?
What is a jit compiler?