The answer is: both. See
here
Unless you implement then explicitely. See
here
You can test with
public interface Iname
{
void display();
}
public interface Iname2
{
void display();
}
class Program
{
static void Main(string[] args)
{
cl obj = new cl();
Iname i1 = obj as Iname;
i1.display();
Iname2 i2 = obj as Iname2;
i2.display();
System.Console.ReadLine();
}
}
class cl : Iname, Iname2
{
public void display()
{
System.Console.WriteLine("speed is 300");
}
}