Write a class named RetailItem that holds data about an item in a retail Mine. The class should have the following fields:

  • description. The description field references a String object that holds a brief description of the item.
  • unitsOnHand. The unitsOnHand field is an int variable that holds the number of units currently in inventory.
  • price. The price field is a double that holds the item's retail price.

Write a constructor that accepts arguments for each field, appropriate mutator method', 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 Retail Item objects and stores the following data in them:

Item #1 Jacket 12 59.95
Item #2 Designer Jeans 40 34.95
Item # 3 Shirt 20 24.95
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.