-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInventoryManager.h
60 lines (48 loc) · 1.16 KB
/
InventoryManager.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
59
60
#include<iostream>
#include "Product.h"
#include "Employee.h"
using namespace std;
#define SIZE2 2
class Product;
class InventoryManager : public Employee
{
private:
string inventoryManagerID;
string inventoryManagerEmail;
Product *prdts[SIZE2];
public:
InventoryManager()
{
inventoryManagerID = "0000";
inventoryManagerEmail = "@gmail.com";
}
InventoryManager(string pID, string pEmail, string EID, string name, float salary, int attent, string contact, int hrs, float rate) : Employee(EID, name, salary, attent, contact, hrs, rate)
{
inventoryManagerID = pID;
inventoryManagerEmail = pEmail;
}
void addProducts(Product *pra1,Product *pra2)
{
prdts[0] = pra1;
prdts[1] = pra2;
}
void updateProducts()
{
}
void deleteProducts()
{
}
float calcSalary()
{
return(employeeBasicSalary + otHrs * otRate);
}
void displayinfo() //Display inventory manager details
{
cout << "Inventory manager ID: " << inventoryManagerID << endl;
cout << "Inventory manager Email: " << inventoryManagerEmail << endl;
}
~InventoryManager()
{
cout << "Inventory Manager deleted" << endl;
}
};