Loose coupling
-
Can any body tell me with an example, how loose coupling is implemented in c# in a such a way that if a class is implementing some interface and if we change something in that class then consumer class doesn't gets effected and without using interface how all the classes consumer class is changed if we didnot implemen using interface.
-
Can any body tell me with an example, how loose coupling is implemented in c# in a such a way that if a class is implementing some interface and if we change something in that class then consumer class doesn't gets effected and without using interface how all the classes consumer class is changed if we didnot implemen using interface.
Only if you tell me, with an example, of how high cohesion is implemented in c# so that the module implementing the interface is written so it encapsulates only its own duties an does not effect any of the parameters passed to it. :-)
Dalek Dave: There are many words that some find offensive, Homosexuality, Alcoholism, Religion, Visual Basic, Manchester United, Butter.
-
Can any body tell me with an example, how loose coupling is implemented in c# in a such a way that if a class is implementing some interface and if we change something in that class then consumer class doesn't gets effected and without using interface how all the classes consumer class is changed if we didnot implemen using interface.
Following article is much help... Dependency Injection for Loose Coupling[^] Thanks, Padmanabh