What is Coupling in OOP?

Technology CommunityCategory: OOPWhat is Coupling in OOP?
VietMX Staff asked 3 years ago

OOP Modules are dependent on each other. Coupling refers to level of dependency between two software modules. Two modules are highly dependent on each other if you have changed in one module and for supporting that change every time you have to change in dependent module. Loose Coupling is always preferred. Inversion of Control and dependency injections are some techniques for getting loose coupling in modules.