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 8 Question 55 Discussion

Posted by Lashawn on Nov 03, 2026 at 05:10 PM

Choose the correct answer:

A project's requirements call for flexibility in the collection class design. Most of the collections will be a fixed length of 25 elements. However, allowance must be made in the design for collections that are a fixed length longer than 25.

Which model fragment supports the project's requirements?

A)

B)

C)

D)

Suggested Answer: C

The UML model fragment that best supports the project's requirements for collection class design is one that allows the fixed length of the collections to be specified but also permits flexibility for collections longer than 25 elements. In Option C, the ClarusCollection class is shown as a template class with a template parameter Size set to a default of 25. However, the dashed lines and the separate box for Type and Size indicate that while there is a default value, it can be overridden. This means that the Size can be parameterized, thus allowing the creation of ClarusCollection instances with different fixed lengths, not just 25. This design will enable most collections to be created with the default size of 25, but also allows for creating collections with sizes greater than 25, providing the flexibility required by the project's requirements. This adheres to the UML 2.x specification on templates and parameterization.


Get Premium OMG-OCUP2-ADV300 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
1 comments · newest first
IL
Ilene 4 days ago
I remember we discussed the importance of flexibility in class design, but I'm not sure which option best reflects that.
0/2000 characters

Save Cancel