What is 'Diamond Problem' in Java?
Can anyone explain me Diamond problem in simple words and with an example?
Diamond problem is an ambiguity arises during multiple inheritances. Java does not support multiple inheritances due to the diamond problem.
multiple inheritances are when multiple classes are inherited from the single superclass.
Now when fun() is called by test object, it will cause ambiguity whether to call class A,B or C funtion.