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:
AnimalSet.writeAnimals() method should take a String or File as a parameter to write the animals to that file. It doesn't need to take the ArrayList<Animal> as parameter because it already has access to it being an attribute of the same class.
You should not have calculateLifeExpectancy in Reptile class because there is nothing common in Turtle or Iguana class that can be placed in Reptile.calculateLifeExpectancy method.
All constructors of Animal and its descendants must have the name and birthdate as parameters. They must not have default no-args constructor. You have it correctly for concrete classes but not for the super-classes.Â
After you complete these changes can you then the the following:
By default you probably have all of your attributes and methods set to public.  Analyze each one and decide if it can only be called internally within the class.  Set these attributes and/or methods to private.Â
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