Is it the best practice to extract an interface for every class?

Posted by the_drow on Stack Overflow See other posts from Stack Overflow or by the_drow
Published on 2010-06-14T11:19:08Z Indexed on 2010/06/14 11:22 UTC
Read the original article Hit count: 134

I have seen code where every class has an interface that it implements.
Sometimes there is no common interface for them all.
They are just there and they are used instead of concreate objects.
They do not offer a generic interface for two classes and are specific to the domain of the problem that the class solves.
Is there any reason to do that?

© Stack Overflow or respective owner

Related posts about c#

Related posts about best-practices