OMG-OCUP2-FOUND100 practice question 14 of 15

Which UML term pair captures complementary ways of looking at a relationship?

Full set: 89 questions
Answer options
A: include / extend
B: use / implement
C: dependency / trace
D: aggregation / composition
E: generalization / specialization Correct answer
Correct Answer:
E. generalization / specialization
Explanation

Generalization and specialization are complementary concepts describing the same inheritance relationship. Generalization is the process of creating a superclass from a set of subclasses (a bottom-up view). Specialization is the process of creating subclasses from a superclass (a top-down view). They represent two different ways of looking at or discovering the same taxonomic relationship between classifiers in UML.

Why Incorrect

A. include and extend are two distinct types of relationships between use cases with different semantics (mandatory vs. optional behavior), not complementary views of one relationship.
B. use (a dependency) and implement (a realization) are fundamentally different kinds of relationships in UML, connecting elements for different purposes.
C. A trace is a specific stereotype of a dependency relationship. It is a kind of dependency, not a complementary perspective on it.
D. Aggregation and composition are two distinct forms of association that model a whole-part relationship with different lifecycle semantics, not complementary views of a single relationship.

References

1. Arlow, J., & Neustadt, I. (2005). UML 2 and the Unified Process: Practical Object-Oriented Analysis and Design (2nd ed.). Addison-Wesley. In Chapter 8, p. 158, the text describes generalization as "the activity of identifying commonality" and specialization as its inverse, illustrating them as complementary activities for structuring a class hierarchy.

2. Object Management Group. (2017). OMG Unified Modeling Language (OMG UML), Version 2.5.1. OMG Document Number formal/2017-12-05. Section 9.2.4, pp. 113-114, defines the Generalization relationship. The concept of specialization is its semantic inverse, used throughout object-oriented literature to describe the same relationship from the superclass's perspective.

Scroll to Top