Question: Write a UML for a class named Retailltem that holds data about an item in a retail store. The class should have the following fields
Write a UML for a class named Retailltem that holds data about an item in a retail store. The class should have the following fields Description A String object that holds a brief description of the item unitsOnHand- an int variable that holds the number of units currently in inventory price- a double that holds the item's retail price Write appropriate mutator methods that store the values in these fields, and accessor methods that return the values in these fields NOTE those are the ONLY methods in the | class. There will be no written constructor. The program will use the java provided default one. Write the code to implement this in Java. Once you have written the class, write a separate class called RetailDemo that creates 3 Retailltem objects and sets the values for each item using the setter method for the values listed below in the following chart. Output the information like this in chart form using the getter methods. Description UnitsOnHand Price Jacket 12 S59.95 Designer Jeans 40 $34.95 Shirt 20 $24.95
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
