Discussion
Which of the following is not a design principle for class based component in modeling component level design ?
(i) A module should be open for extension but closed for modification.
(ii) One General purpose interface is always better than many client-specific interfaces.
(iii) Classes that change together belong together
Answer: B
The statement that is not a design principle is (ii) only.
The Interface Segregation Principle, one of the class-based component design principles Pressman lists, says the opposite of (ii): many client-specific interfaces are better than one general-purpose interface, so that clients do not depend on operations they do not use.
Statement (i) is the Open-Closed Principle, that a module should be open for extension but closed for modification. Statement (iii) is the Common Closure Principle, that classes that change together belong together in a package. Both are genuine principles, so options including them are wrong.
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