.NET Fiddle

CSharp · Console

/Program.cs

using System;

interface A{
	Object foo();
}
 
interface B{
	String foo();
}
 
class C : A, B{
	public String foo(){
		return "Foo";
	}
}

public class Program
{
    public static void Main()
    {
		C c = new C();
		Console.WriteLine(c.foo());
	}
}
;