Question: Hello, I would be grateful for some help with the Java questions below. Thanks a) Design a Java Class which represents a Retail Item. It
Hello, I would be grateful for some help with the Java questions below. Thanks

a) Design a Java Class which represents a Retail Item. It is to have the following fields Item Name Item Serial No Item Unit Price Item Stock Level Item Reorder Level It is to have at least the following methods an Ibserver, Mutator and a Display method for each field. It is also to have a buy and a restock method and a method to issue a warning if the stock level goes below the re-order level. (8 marks) b) Extend the Retail Item class of part a) above to represent a Perishable Item. This subclass will have extra fields to represent expiry date, storage instructions and a consume deadline ie the number of days in which the item must be consumed once opene Again have at least the following methods for these new fields, namely an Observer, Mutator and a Display method. Also have a method which displays the number of days until the expiry date . (18 marks) c) Write a control program which creates five instances of standard retail items and five instances of perishable items. 1. Buy 2 Retail Items and 3 perishable items 2. Display the stock levels of any two items 3. Calculate the total value of Items in Stock including perishable items Note Do not include any perishable items which are past their sell-by date 4. Re-order Stock for any three Items
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
