Which model fragment supports the project’s requirements?
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)
A . Option A
B . Option B
C . Option C
D . Option D
Answer: C
Explanation:
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.
Latest OMG-OCUP2-ADV300 Dumps Valid Version with 200 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund