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
Why null value is used in string?
What is java lang object?
What are the types of sockets in java?
Is a method a procedure?
What is the difference between a factory and abstract factory pattern?
Explain what do you mean by functional overloading in java?
What is java thread dump, how can we get java thread dump of a program?
What is internal variable?
In how many ways we can do synchronization in java?
Why do we need wrapper classes?
Implement a stack with push (), pop() and min() in O(1) time.
what is thread? : Java thread
What is parsing in grammar?
Can we use catch statement for checked exceptions?
What is singleton pattern?