OMG-OCUP2-ADV300 practice question 8 of 10

Which subclasses of Classifiers can be parameterized and used as Template Parameters?

Full set: 90 questions
Answer options
A: Class. Component. Interface, but not Signal
B: Signal. Use Case, Component, but not Datatype
C: Activity. Interaction, State Machine, but not Collaboration
D: all subclasses of Classifier e.g. Class. Component. Datatype. Interface. Signal Correct answer
Correct Answer:
D. all subclasses of Classifier e.g. Class. Component. Datatype. Interface. Signal
Explanation

In the UML metamodel, Classifier is defined as an abstract metaclass that directly inherits from both TemplateableElement and ParameterableElement. Because of this metamodel inheritance structure, every concrete metaclass that specializes Classifier automatically inherits the ability to be parameterized as a template classifier and to be used as a template parameter. This architectural design applies universally across all structural and behavioral classifiers in UML, including Class, Component, DataType, Interface, Signal, UseCase, Activity, Interaction, StateMachine, and Collaboration. Therefore, all subclasses of Classifier can be parameterized and utilized as valid template parameters within UML models.

Why Incorrect

A: Signals inherit from Classifier, so they can also be parameterized and used as template parameters, making this exclusion incorrect. B: DataTypes inherit from Classifier, meaning they can be parameterized and used as template parameters, making this exclusion incorrect. C: Collaborations inherit from Classifier and can also be parameterized and used as template parameters, making this exclusion incorrect.

References

- OMG Unified Modeling Language (OMG UML) Specification, Version 2.5.1, Section 7.3.4 (Metamodel Abstract Syntax - Templates), pp. 24-25.

- OMG Unified Modeling Language (OMG UML) Specification, Version 2.5.1, Section 9.2 (Classifiers), pp. 113-116.

Scroll to Top