1.

In order to avoid ambiguity among an interface derived from two base interfaces with same method name(and signature), the right code among the following given codes is? a) interface i1 { void m1(); } interface i2 { void m1(); } interface i3 :i1, i2 { } class c3 :i3 { void i1.m1() { } void i1.m1() { } } b) interface i1 { void m1(); } interface i2 { void m1(); } interface i3 :i1, i2 { } class c3 :i3 { void i1.i2.m1() { } } c) interface i1 { void m1(); } interface i2 { void m1(); } interface i3 :i1, i2 { } class c3 :i3 { void i1.m1() { } void i2.m1() { } }

A. A
B. B
C. C
D. All of the mentioned
Answer» D. All of the mentioned


Discussion

No Comment Found