Question: What is the correct answer to this question? Complete the implementation of the productType class defined in Exercises 8 and 10 of this chapter. The

What is the correct answer to this question?

Complete the implementation of the productType class defined in Exercises 8 and 10 of this chapter. The header file has been provided for you.

Write a program to test your implementation file. File: main.cpp

#include

using namespace std;

int main() {

// Write your main here

return 0;

}

File: productType.h

#include

using namespace std;

class productType

{

public:

productType();

productType(int, double, double);

productType(string, int, double, double);

productType(string, string, string,

int, double, double);

void set(string, string, string, int,

double, double);

void print() const;

void setQuantitiesInStock(int x);

void updateQuantitiesInStock(int x);

int getQuantitiesInStock() const;

void setPrice(double x);

double getPrice() const;

void setDiscount(double d);

double getDiscount() const;

private:

string productName;

string id;

string manufacturer;

int quantitiesInStock;

double price;

double discount;

};

File: productTypeImp.cpp

// Write your code here

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!