Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

OMG-OCUP2-ADV300 Exam - Topic 5 Question 52 Discussion

Choose the correct answer:Which keyword indicates that instances of one Classifier may be used instead of Instances of another Classifier?
D) isSubstitutable
A) substitute
B) replacement
C) isReplaceable

OMG-OCUP2-ADV300 Exam - Topic 5 Question 52 Discussion

Actual exam question for OMG's OMG-OCUP2-ADV300 exam
Question #: 52
Topic #: 5
[All OMG-OCUP2-ADV300 Questions]

Choose the correct answer:

Which keyword indicates that instances of one Classifier may be used instead of Instances of another Classifier?

Show Suggested Answer Hide Answer
Suggested Answer: D

In UML, the keyword isSubstitutable is used to indicate that instances of one classifier may be used in place of instances of another classifier. This concept is commonly applied in the context of generalization, where a subclass can be substituted for its superclass. The substitutability is a fundamental principle of object-oriented design, particularly in the Liskov Substitution Principle, which states that objects of a superclass should be replaceable with objects of a subclass without affecting the correctness of the program. This principle is reflected in UML's support for polymorphism, which is implicit in the generalization relationships between classifiers.


Contribute your Thoughts:

0/2000 characters
Carey
5 days ago
I feel like "replacement" could be a trick option. I saw a similar question in our practice tests, but I can't recall the exact keyword.
upvoted 0 times
...
Cory
10 days ago
I think it might be "isSubstitutable," but I'm not entirely sure. I remember something about substitutability in class hierarchies.
upvoted 0 times
...

Save Cancel