0% found this document useful (0 votes)
66 views1 page

Spain: Country France: Country Belgium: Country

This document contains 4 questions about class diagrams and object diagrams. Question 1 asks to create a class diagram showing countries in Europe. Question 2 asks to create a class diagram for points and polygons, explaining multiplicity decisions. Question 3 asks to create an object diagram for two triangles sharing a point. Question 4 asks to add multiplicities and association names to a partial class diagram of an air transportation system.

Uploaded by

VaidehiBaporikar
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
66 views1 page

Spain: Country France: Country Belgium: Country

This document contains 4 questions about class diagrams and object diagrams. Question 1 asks to create a class diagram showing countries in Europe. Question 2 asks to create a class diagram for points and polygons, explaining multiplicity decisions. Question 3 asks to create an object diagram for two triangles sharing a point. Question 4 asks to add multiplicities and association names to a partial class diagram of an air transportation system.

Uploaded by

VaidehiBaporikar
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Tutorial 1 CS 304: Object-Oriented Design & Analysis Q.

.1 Prepare a class diagram for the following object diagram that shows a portion of Europe. Borders Borders

Spain: Country Name = Spain

France: Country Name = France

Belgium: Country Name = Belgium

Figure-1 Q.2 Prepare a class diagram for object diagram given in Figure -2. Explain your multiplicity decisions. What is the smallest number of points required to construct a polygon? Does it make a difference whether or not point may be shared between polygons? Your answer should address the fact that points are ordered.
: Point : Point xCoord = -10 yCoord = 10 : Polygon xCoord = 10 yCoord = 10

: Point xCoord = -10 yCoord = -10

: Point xCoord = 10 yCoord = -10

Figure - 2 Q.3 Using the class diagram that obtained in Q.2, prepare an object diagram for two triangle with a common side under the following conditions a. A point belongs to exactly one polygon. b. A point may belong to one or more polygon Q.4 Figure 3 is a partially completed class diagram of an air transportation system. Add multiplicities in the diagram. Also add association names to unlevelled associations.
City name Airline name Pilot name Plane

Depart
Airport name

Flight flightNum

model

Arrive

Seat Passenger name location

You might also like