Created
September 30, 2010 04:36
-
-
Save kkozmic/604033 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
public interface IFoo | |
{ | |
void Foo(); | |
} | |
public class Base:IFoo | |
{ | |
public void Foo() | |
{ | |
} | |
} | |
public class Inherited: Base, | |
IFoo // <-- why/when would you want to do it? | |
{ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, this is design smell and I would never use them. I wrote just technical reason why someone would want to do it :-)