In Order To Avoid Ambiguity Among An Interface Derived From Two #433
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 C# codes is?
This multiple choice question (MCQ) is related to the book/course gs gs108 CSharp. It can also be found in gs gs108 Object Oriented Concepts - Interfaces Implementation - Quiz No.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 C# codes is?
interface i1 { void m1(); } interface i2 { void m1(); } interface i3 :i1, i2 { } class c3 :i3 { void i1.m1() { } void i1.m1() { } }
interface i1 { void m1(); } interface i2 { void m1(); } interface i3 :i1, i2 { } class c3 :i3 { void i1.i2.m1() { } }
interface i1 { void m1(); } interface i2 { void m1(); } interface i3 :i1, i2 { } class c3 :i3 { void i1.m1() { } void i2.m1() { } }
All of the mentioned