chaitanya karthikk wrote:Hi Henry I dint understand what you said. And please tell me what I quoted about multiple inheritance is correct or wrong.
Thank you in advance.
What he is saying is that in your second example, the compiler/run-time will make no differentiation between interface A.a() and B.a(). Since they have the same signature, return type, and name ... they are handled in the same fashion ... invoke a()
here is an example
OUTPUT:
No other implementation, other than me!
No other implementation, other than me!
No other implementation, other than me!
The only method that could be invoked is a() ... A,B will both refer to a().