volume_mute

Patterns vs Component Reuse

publish date2026/06/12 10:18:12.812423 UTC

volume_mute

Design patterns support 'concept-level reuse' rather than 'component reuse'. What is the key advantage of concept-level reuse through patterns compared to reusing executable components?

Correct Answer

With patterns you reuse the ideas and adapt the implementation to suit your system, avoiding the constraints imposed by a component's specific algorithms, object types, and interfaces that might conflict with your requirements

Explanation

When reusing executable components, you are constrained by the design decisions already made - specific algorithms, object types, and interfaces in the component. If these conflict with your requirements, reusing the component is either impossible or introduces inefficiencies. Using patterns means you reuse the ideas (the abstract solution) but adapt the implementation to suit your system. You use the knowledge of the original designer while keeping full freedom of implementation.

Reference

Software Engineering, Ian Sommerville, 10th edition


Quizzes you can take where this question appears