Foo
class A{ public void Foo( int n ) { Console.WriteLine( "A::Foo" ); }}class B : A{ /* note that A::Foo and B::Foo are not related at all */ public void Foo( double n ) { Console.WriteLine( "B::Foo" ); }}static void Main( string[] args ){ B b = new B(); /* which Foo is chosen? */ b.Foo( 5 );}