using System; public class Test { interface Foo { void Bar(int a, int b = 1); } class FooImpl : Foo { public void Bar(int a, int b) { Console.WriteLine("bar/2"); } public void Bar(int a) { Console.WriteLine("bar/1"); } } public static void Main() { Foo f1 = new FooImpl(); f1.Bar(1); FooImpl f2 = new FooImpl(); f2.Bar(1); } }