Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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!

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

What Is A Database And How Do I Use It

Authors: Matt Anniss

1st Edition

1622750799, 978-1622750795

More Books

Students also viewed these Databases questions