The purpose of interfaces is to minimize dependencies between different parts of program for the following reason :
MH SET - 2018, SET Exam - 2018,
Answer: D
The answer is All of the above.
An interface separates what a component offers from how it is implemented. Other parts of the program depend only on the interface, so each part can be understood on its own, which makes systems easier to understand; the implementation stays hidden, which gives better data hiding; and the implementation can be changed without disturbing its users, which makes the system easier to modify.
Each of the first three options states one of these benefits, and none excludes the others, so all three reasons apply together.
Please log in or register to report this question.