explain interfaces in C#
- by Ashish
//inteface i11
public interface i11
{
void m11();
}
//interface i22
public interface i22
{
void m11();
}
//class ab implements interfaces i11 and i22
public class ab : i11, i22
{
public void m11()
{
Console.WriteLine("class");
}
}
now when in Main() method we create an object of class ab
which interface method will get called please explain all.