Spain: Country France: Country Belgium: Country
Spain: Country France: Country Belgium: Country
.1 Prepare a class diagram for the following object diagram that shows a portion of Europe. Borders Borders
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
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