Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use the document entitled, What Is UML to assist in answering the following questions. Feel free to do more research on the Internet on each

image text in transcribedimage text in transcribedimage text in transcribed

Use the document entitled, "What Is UML" to assist in answering the following questions. Feel free to do more research on the Internet on each type of diagram if you feel it is required. We will be reviewing solutions in class next week 1. Create an UML class diagram that models the data relationships described in the following paragraph To be a collector you have to have one or more collections. Each collection must have 2 or more items. Each collection belongs to one collector. A collection is made up of items owned. A particular item may be in more than one collection (i.e. an old Coke sign may be in both a Coke memorabilia collection and a sign collection.) Use the following class diagram to answer the questions that following it. If there isn't enough information in the diagram to answer the question, state as much. 2. H: 1. la Company Person employer employee a. Must a company have an employee? b. Must a person have an employer? i.e. Can a person be unemployed? c. Can a person be self-employed? Draw the UML class diagram for the following code fragments. You can assume class M already exists and start the sequence diagram with the method f). You don't have to document calls to any methods defined for classes not shown here 3. public class M class Subject t private Collection c; public static void main(String[] args) M m = new M() m.f): public void addObserver (Observer o) c.add (o): public void fi) Subject snew Subject (): Observer o1 new Observer ); Observer o2 ne Observer ); s.addObserver (o1) S.adddobserver (O2 public void changeState () i // Change state of subject notifyObservers): public void notifyObservers() f s.changeState () Iterator ic.iterator (); while (i.hasNext ()

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Choosing Your Topic Researching the Topic

Answered: 1 week ago

Question

The Power of Public Speaking Clarifying the

Answered: 1 week ago