Machine-translated by Google. Questions are authored in English.
Top

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

  • A.(iii) only
  • B.(ii) only
  • C.(i) only
  • D.(i) and (iii) only

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.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.