Created
September 14, 2016 09:22
-
-
Save mrtank/d6dfde20adbfcec626567a508c826fc2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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