-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProduct.h
58 lines (50 loc) · 1.21 KB
/
Product.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#include<iostream>
#include "Manager.h"
#include "Shopper.h"
#define SIZE4 2
using namespace std;
class InventoryManager;
class Product{
private:
string productID;
string productName;
string productPrice;
string productColor;
string productSize;
shopper *shppr[SIZE4];
public:
Product(){
productID = "p000";
productName = "pName";
productPrice = "0000";
productColor = "pColor";
productSize = "pSize";
}
Product (string prdtID, string prdtName, string prdtPrice, string prdtColor, string prdtSize){
productID = prdtID;
productName = prdtName;
productPrice = prdtPrice;
productColor = prdtColor;
productSize = prdtSize;
}
void filterProducts()
{
}
void displayPrdtDetails() //Display product details
{
cout << "Product ID: " << productID << endl;
cout << "Product Name: " << productName << endl;
cout << "Product Price: " << productPrice << endl;
cout << "Product Color: " << productColor << endl;
cout << "Product Size: " << productSize << endl;
for(int i = 1; i < 2; i++)
{
shppr[i]->displayRinfo();
}
}
void addShopper(shopper *shppr1, shopper *shppr2)
{
shppr[0] = shppr1;
shppr[1] = shppr2;
}
};