volume_mute

Four Essential Elements of a Design Pattern

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

volume_mute

The Gang of Four defined four essential elements that every design pattern description should include. Match each element to its correct description.

To complete the line match

  1. Click on an item in the first group
  2. Click on the match in the second group

To delete a match, double click on a line

Element

Name
Solution description
Problem description
Consequences

Description

A meaningful reference to the pattern - patterns become part of the vocabulary for discussing designs
Explains when the pattern may be applied, including motivation (why it is useful) and applicability (situations where it may be used)
A template for the design solution that can be instantiated in different ways; describes the parts, their relationships and responsibilities; often expressed graphically showing object relationships
A statement of the results and trade-offs of applying the pattern; helps designers understand whether the pattern can be used in a particular situation

Correct Answer

(1) Name,A meaningful reference to the pattern - patterns become part of the vocabulary for discussing designs
(2) Problem description,Explains when the pattern may be applied, including motivation (why it is useful) and applicability (situations where it may be used)
(3) Solution description,A template for the design solution that can be instantiated in different ways; describes the parts, their relationships and responsibilities; often expressed graphically showing object relationships
(4) Consequences,A statement of the results and trade-offs of applying the pattern; helps designers understand whether the pattern can be used in a particular situation

Explanation

The four essential elements: (1) Name - a meaningful reference that becomes vocabulary; (2) Problem description - when/why the pattern may be applied (motivation and applicability); (3) Solution description - not a concrete design but a template showing parts, relationships, and responsibilities, often expressed graphically; (4) Consequences - results and trade-offs of applying the pattern to help designers decide if it fits their situation.

Reference

Software Engineering, Ian Sommerville, 10th edition


Quizzes you can take where this question appears