5. Criticize the statement." Diamond problem is a major issue in Inheritance"
Answers
Answered by
0
Explanation:
The "diamond problem" (sometimes referred to as the "Deadly Diamond of Death") is an ambiguity that arises when two classes B and C inherit from A, and class D inherits from both B and C.
This trap is known as diamond problem of multiple inheritance. Since Java does not allow multiple inheritance for classes (only multiple interfaces are allowed), so diamond problem can not exist in Java. At any given point in time, a given Java class can extend from only one super class.
hope u like it
thank u
Similar questions