InterviewSolution
Saved Bookmarks
| 1. |
Which one among the following means tight coupling?(a) Code Duplication(b) Inheritance(c) Encapsulation(d) PolymorphismThe question was posed to me in exam.My query is from Object and Design-1 in portion Object Tools and Design and Variables in PHP of PHP |
|
Answer» CORRECT option is (a) Code Duplication For explanation: Duplication is one of the great evils in code. Take a look at the instances of repetition in your system. Perhaps they BELONG together. If you change something fundamental about one ROUTINE, will the similar routines need amendment? If this is the CASE, they probably belong in the same class. |
|