Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Loose coupling

Loose coupling

Scheduled Pinned Locked Moved C#
csharptutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mogamboo_Khush_Hua
    wrote on last edited by
    #1

    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.

    K P 2 Replies Last reply
    0
    • M Mogamboo_Khush_Hua

      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.

      K Offline
      K Offline
      Keith Barrow
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • M Mogamboo_Khush_Hua

        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.

        P Offline
        P Offline
        Padmanabh Ganorkar
        wrote on last edited by
        #3

        Following article is much help... Dependency Injection for Loose Coupling[^] Thanks, Padmanabh

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups