Discussion
The purpose of interfaces is to minimize dependencies between different parts of program for the following reason :
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.
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development