Skip to content

Instantly share code, notes, and snippets.

@migueldeicaza
Created March 8, 2010 22:11
Show Gist options
  • Save migueldeicaza/325845 to your computer and use it in GitHub Desktop.
Save migueldeicaza/325845 to your computer and use it in GitHub Desktop.
using System;
interface IExplicit {
void M ();
}
interface IImplicit : IExplicit {
}
class C1 : IImplicit {
public void M ()
{
Console.WriteLine ("C1.M");
}
}
class C2 : C1, IImplicit {
public void M ()
{
Console.WriteLine ("C2.M");
}
}
class F{
static void Main ()
{
var c = new C2 ();
IExplicit ie = c;
c.M ();
ie.M ();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment