Question: Exercise 3 ( explain all steps in detail please ) : Complete the class diagram. Suppose we are building a system tracking various plants spread
Exercise explain all steps in detail please: Complete the class diagram.
Suppose we are building a system tracking various plants spread in municipailities. Each individual plant is
located in some municipality, whereas a municipality may contain any number of plants zero plants is also
a possibility A plants can be either a tree or a moss.
Let's assume that the administrative unit under the municipality is called "district". In addition, there are
usually several settlements villages cities, etc. in a municipality, which can possibly be located across
a border in two municipalities. The district is a bureaucratic classification, the settlement a real existing
construct. One of these relationships is an aggregation, the other a composition. Why?
Consider the following partial UML class diagram:
Complete the missing relationships based on the narrative above. Identify aggregation and compisition.
Argue why one of the relations is aggregation which one? and the other composition which one?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
