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, 1 Day 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
Â
Â
•You are still missing constructors in RentalSystem class
•Some media classes are still missing calculate rental method. When a genre class has a different calculation of the rental fee, it needs a method of its own as it cannot just inherit from the parent.
•You are still storing media (Movie, Music, Audio) in media class which is incorrect as I explained in last week’s feedback.Â
•The addMedia should only have one parameter of type media that would be stored in the Media[] mediaList attribute. There are no Music and Audio classes so why do you have parameters for them?
•I still do not see any polymorphism in the diagram. You need both overriding and overloading.
The rentalFee method should not have a parameter as it should calculate the fee using the attribute values and constants and not get the value passed in.
You have drama() which is a method and you need a constructor in Drama class.
Super is an implementation statement and should not be part of the diagram
MusicCd should not have attribute for fileSize as that attribute should be in media to be inherited by all media classes.
All attributes should be private or protected so they cannot be accessed directly by other classes.
You need get methods across all classes to allow getting the value of the attributes. For example RentalSystem needs ability to see the attributes of the account it is storing and it would do that by calling get methods of MediaRentalAccount.
All your classes need a way to provide values for the attributes. It can either be done by a constructor with parameters or set method with a parameter. You can have one or both but you need at least one way to provide values to the attributes.
Get method returns the value of the attribute and set method assigns a value to the attribute.
Â
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