Exam4Training

What characterizes the generalization relationship between two Classifiers where the child can NOT be substituted for the parent?

What characterizes the generalization relationship between two Classifiers where the child can NOT be substituted for the parent?
A . It has the stereotype "nonSubstitutable".
B . It has the property "Substitute" set to false
C . It has the property ‘’isSubstitutable" set to false.
D . It has the property "substitutingClassifier" set to false.

Answer: C

Explanation:

In UML, the isSubstitutable property of a generalization relationship indicates whether instances of the child classifier can be used wherever instances of the parent classifier are expected, that is, whether the subclass is substitutable for the superclass. When this property is set to false, it means that the child classifier cannot be substituted for the parent classifier. This property is part of the UML metamodel for generalization and affects how inheritance is interpreted in terms of

substitutability, as described in the UML 2.x Superstructure Specification.

Exit mobile version