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 Exam OMG-OCUP2-ADV300 Topic 2 Question 35 Discussion

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

Choose the correct answer:

A developer wants to make sure that each specialization of Class Bicycle has its own unique set of values for the suitable road surface and average speed

Which diagram imposes these requirements?

A)

B)

C)

D)

Show Suggested Answer Hide Answer
Suggested Answer: C

In Option C, the properties suitable road surface and average speed have been redefined in the subclasses Recumbent Bike and Racing Bike. The use of the {redefines} keyword in UML signifies that the subclass will provide its own specific values for these properties, overriding the general ones provided by the superclass Bicycle. This is the correct way to enforce that each specialization of Bicycle has a unique set of values for these attributes, as redefinition allows for the customization of inherited properties on a per-subclass basis. The use of {redefines} is specified in the UML 2.x Superstructure Specification, which describes how properties inherited from a superclass can be customized by subclasses.


Contribute your Thoughts:

Cathrine
6 days ago
I think the correct answer is Option A
upvoted 0 times
...

Save Cancel