Question: Write a program that uses the class productType Please specify what goes in main.cpp, productType.h and productType.cpp Please do not leave anything out, thank you!

Write a program that uses the class productType

Please specify what goes in main.cpp, productType.h and productType.cpp

Please do not leave anything out, thank you!

Write a program that uses the class productType Please specify what goes

in main.cpp, productType.h and productType.cpp Please do not leave anything out, thank

Consider the definition of the following class: (1, 2,3, 5,7) class productType 8. //Line 1 //Line 2 //Line //Line 4 //Line5 public: productType () productType (int, double, double) productType (string, int, double, double) /Line 6 productType (string, string, string, int, double, double) //Line'7 void set (string, string, string, int, double, double) //Line 8 //Line s void print) const; void setQuantitiesInstock (int x)i void updateQuantitiesInStock (int x)i int getQuantitiesInstock() const; //Line 10 //Line 11 //Line 12 void setPrice (double x); double getPrice() const; void setDiscount (double d)i double getDiscount ) const //Line 13 //Line 14 //Line 15 //Line 16 //Line 17 //Line 18 //Line 19 //Line 20 //Line 21 //Line 22 //Line 23 //Line 24 private: string productName; string id; string manufacturer; int quantitiesInStock; double price; double discount; J

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!