Skip to content

Instantly share code, notes, and snippets.

@mrtank
Created September 14, 2016 09:22
Show Gist options
  • Save mrtank/d6dfde20adbfcec626567a508c826fc2 to your computer and use it in GitHub Desktop.
Save mrtank/d6dfde20adbfcec626567a508c826fc2 to your computer and use it in GitHub Desktop.
internal class A
{
public void DoSixth()
{
}
public void DoFirst()
{
}
}
internal class B : A, IFirstFive
{
}
internal class C : A, ISecondFive
{
}
public class UsageClass
{
public void Usage()
{
IFirstFive b = new B();
b.DoFirst();
// b.DoSixth(); not working
}
}
public interface ISecondFive
{
void DoSixth();
//...
}
public interface IFirstFive
{
void DoFirst();
//...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment