1. RetailItem Class
Write a class named RetailItem that holds data about an item in a retail store. The class should have the following fields:
• description. It is a String object that holds a brief description of the item.
• unitsOnHand. It is an int variable that holds the number of units currently in inventory.
• price. It is a double that holds the item’s retail price.
Write appropriate mutator methods that store values in these fields and accessor methods that return the values in these fields. Once you have written the class, write a separate program that creates three RetailItem objects and stores the following data in them.
Dear John, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order
Comments
Leave a comment