APlusGrades

Not Rated (0)

$15/per page/Negotiable

About APlusGrades

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Applied Sciences,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Economics,Engineering,English,Environmental science,Essay writing,Foreign Languages,Geography,Geology,Health & Medical,HR Management,Law,Management,Physics,Programming,Science,Statistics Hide all
Teaching Since: Jul 2017
Last Sign in: 364 Weeks Ago, 2 Days Ago
Questions Answered: 1850
Tutorials Posted: 1850

Education

  • Graduate in Biology and Nutrition, MBA Finance
    Florida State University
    Aug-2000 - Jul-2007

Experience

  • Ass. Relationship Manager
    Penn-Florida
    Mar-2009 - Feb-2016

Category > Programming Posted 17 Jul 2017 My Price 12.00

programming

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:

Answers

Not Rated (0)
Status NEW Posted 17 Jul 2017 07:07 PM My Price 12.00

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

Not Rated(0)