Question: Can i get help with this java question please? (2) The Perishableltem Class Create a subclass of Groceryltem called Perishableltem that represents an item that


Can i get help with this java question please?
(2) The Perishableltem Class Create a subclass of Groceryltem called Perishableltem that represents an item that can spoil. Implement a public toString0 method that returns a String representation of the Perishableltem as follows (making sure to make full use of inheritance Smart-Ones Frozen Entrees weighing 0.311 with price 1.99 (perishable) Remove the perishable attribute from the Groceryltem class. You will need to modify the constructors (and delete one of them) as well as remove the get method. Adjust the ShopperTestProgram (from the last assignment) to make use of the Perishableltem class now for all items that were perishable. You will see a need to create a constructor in the Perishableltem class that makes ful use of inheritance. Adjust your unpackPerishables() method in the GroceryBag class so that it works property again by making proper use of inheritance. The method MUST return an array of Perishableltem objects now instead of Groceryltem objects
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
