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 difference between static class and normal class?
How do you find the independent variable?
How do you use parseint in java?
What is :: operator in java?
What is the common usage of serialization?
What is variable and constant explain with example?
What is the association?
Assume a thread has lock on it, calling sleep() method on that thread will release the lock?
Is oracle java 11 free?
Why static functions are used?
What is backdrop?
What is anti pattern in cyber security?
Why do we need data structure in java?
What is double data type?
what are the disadvantages of indexes in oracle?