Write a class named retailitem that holds data about an


Program: Write a class named RetailItem that holds data about an item in a retail store. The class should have the given member variables:

- description - A string that holds a brief description of the item

- unitsOnHand - An int that holds the number of units currently in inventory.

- price - A double that holds the item's retail price.

Write a constructor that accepts arguments for each member variable, appropriate "setter" functions that store values in these member variables, and "getter" functions that return the values in these member variables.

You should prepare a header file "RetailItem.h" with the class definition, and separate .cpp file "RetailItem.cpp" with the member function definitions.

Can you please help me answering this question by using C++ methods?

 

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write a class named retailitem that holds data about an
Reference No:- TGS0961298

Expected delivery within 24 Hours