maurices5000 0 Newbie Poster

Are there two or more ways to couple and decouple the service type and service contract?

The book I'm reading speaks of coupling and decoupling in two different ways. Am I reading it wrong? I can provide examples but I'm trying not to over complicate this post.

1) She speaks of coupling and decoupling the service contract and service type. Basically coupled is when you don't define an interface for the service contract. You just use the type. Decoupling is when you use an interface as the contract and a type to implement the interface.

2) But she also seems to talk about coupling the service contract (interface) and service type (class implementation) by placing them both in the same assembly. I understand assembly to mean class file (.cs).

ARe both of these coupling/decoupling scenarios? How do you differentiate between the types in conversation? Do they have different names?

I can copy the actual text if necessary. But i was hoping you might understand without all the extra reading.

Thanks!