Question: USE C++, please type~ Thanks! Write a class named RetailItem that holds data about an item in a retail store. The class should have the

USE C++, please type~ Thanks!

Write a class named RetailItem that holds data about an item in a retail store. The class should have the following member variables: description: A string that holds a brief description of the item. unitsOnHand: An int that holds thw number of units currently in inventory. price: A double that holds that item's retail price.

Write the following functions: -appropriate mutator functions -appropriate accessor functions - a default constructor that sets: -description: Jacket -unitsOnHand: 12 -price: 49.95

Your main function must create a RetailItem object named Y and ask the user for initial values of Y. Then, the main function displays the values stored in Y.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!