The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Jul 2017 |
| Last Sign in: | 364 Weeks Ago, 2 Days Ago |
| Questions Answered: | 1850 |
| Tutorials Posted: | 1850 |
Graduate in Biology and Nutrition, MBA Finance
Florida State University
Aug-2000 - Jul-2007
Ass. Relationship Manager
Penn-Florida
Mar-2009 - Feb-2016
Hello, I was wondering if you can help me in updating this class diagram using ARGO UML with the following corrections from the feedback below:
You should have a collection of Animals(s) in AnimalSet. Something like:
ArrayListr<Animal> animals
In your AnimalSet class, add methods to read from a file and write to a file.
You don't need to store age in Animal class because you can always calculate it based on birthDate. You also don't need to stor species or animalType attributes. You cannot store lifeExpectancy as a static attribute because 1) it is dynamic and would change as time goes by 2) its calculation would depend upon the animal and its specie. The getLifeExpectancy() method in the same class would do this. As you learn more about inheritance, think about how you can achieve this without these attributes.
You don't need the species attribute in Bird, Mammal, and Reptile classes.
You are missing Eagle, Hawk, Iguana, and Turtle classes. Please put them in.
Question 2: After the following corrections are implemented in this class diagram, please Introduce Composition and/or Aggregation into the class diagram.  Make sure for each Composition and/or Aggregation relation to indicate the cardinality.
Attachments:Hel-----------lo -----------Sir-----------/Ma-----------dam----------- Â----------- -----------Tha-----------nk -----------you----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------acq-----------uis-----------iti-----------on -----------of -----------my -----------pos-----------ted----------- so-----------lut-----------ion-----------.Pl-----------eas-----------e p-----------ing----------- me----------- on----------- ch-----------at -----------I a-----------m Â----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I