written_questions1

written_questions1 - Please submit written solutions in...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Please submit written solutions in class on Friday, April 24 for feedback on Monday, April 27. Email solutions accepted until 9AM Saturday, April 25 for feedback on Monday, April 27 (emailers should probably skip question 2). Group work is encouraged (in which case you should only submit one copy of your answers). 1. Fill in the blanks: a. Aggregation models the __________ relationship between a class and its attribute. b. Composition models the __________ relationship between a class and its attribute. c. Unlike aggregation, composition implies ____________ of the attribute. 2. Draw the UML class diagram for the following classes: a. A class X that aggregates two String instances. b. A class Y that aggregates one String and one Date instance. c. A class Z that aggregates a List<String> instance where the instance holds zero or more String instances. d. A class C that is composed of one String, one Date, and one List<String> instance where the List instance always holds five String instances. 3.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

written_questions1 - Please submit written solutions in...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online