Which one of the following means tight coupling?
Correct answer
A. Code Duplication
12 views
A. Code Duplication
12 views
Code duplication is a sign of tight coupling. When the same routine is copied into several places, a change to one copy must be repeated in all the others — exactly the dependency that defines tightly coupled code.
Inheritance, encapsulation and polymorphism are tools used to remove duplication and loosen coupling, not symptoms of it.
Want more practice? Try the full set of Computer Science MCQs on MCQsExam.com.
Not sure why the answer is A? Ask here and get an explanation.