[Solved] : Question 130342

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.

DescriptionUnits On HoldPrice

Designer Jeans4034.95
Jacket 1259.95
Shirt 2024.95

Expert Answer

Answer to : Question 130342

Leave a Comment


We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us

× How can I help you?