Question: Product Class The Product class stores information relevant to a product. These include product ID (integer), name, description, model (string), price, quantity, UPC (string), product

Product Class

The Product class stores information relevant to a product. These include product ID (integer), name, description, model (string), price, quantity, UPC (string), product dimensions (Dimensions object), and brand (Manufacturer object). Brand should be declared as a constant. Also include a static variable productCount. Each time a product is created, the product count should increase by 1.

The Product class should have 3 constructors: (1) a default constructor; (2) a constructor that accepts the product ID, name, description, price, quantity, upc, dimensions and manufacturer, (3) a constructor that accepts the product ID, name, description, model, price, quantity, upc, dimensions and manufacturer.

Create accessor and mutator functions for each of the data members. Also create the following functions: printManufacturerDetails, printProduct, printShortProduct, sellItem, returnItem and getProductCount. The table below describes each function.

I need a .cpp file and .h file in C++

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!