In object oriented design, Coupling refers to the degree of direct
knowledge that one element has of another. In other words, how often do
changes in class A force related changes in class B.
Note : Tight coupling violets OPEN CLOSED PRINCIPLE ( A class should be open for extension and closed for modification).
You can read open closed oops design principle . Dependency Injection framework are also example of this, See more on this.
For more information please visit:-
1. http://www.interviewsansar.com/2018/03/24/loose-coupling-and-tight-coupling-in-java/
2. http://www.interviewsansar.com/2016/05/12/open-closed-principle-interview-question-with-awesome-answer/
3. https://www.geeksforgeeks.org/coupling-in-java/
4. https://dzone.com/articles/what-is-loose-coupling
5. http://www.codesuggestions.com/java/tight-coupling-and-loose-coupling-between-java-objects/
Note : Tight coupling violets OPEN CLOSED PRINCIPLE ( A class should be open for extension and closed for modification).
You can read open closed oops design principle . Dependency Injection framework are also example of this, See more on this.
For more information please visit:-
1. http://www.interviewsansar.com/2018/03/24/loose-coupling-and-tight-coupling-in-java/
2. http://www.interviewsansar.com/2016/05/12/open-closed-principle-interview-question-with-awesome-answer/
3. https://www.geeksforgeeks.org/coupling-in-java/
4. https://dzone.com/articles/what-is-loose-coupling
5. http://www.codesuggestions.com/java/tight-coupling-and-loose-coupling-between-java-objects/
You are welcome.
ReplyDelete