-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInvoice.h
More file actions
27 lines (21 loc) · 973 Bytes
/
Invoice.h
File metadata and controls
27 lines (21 loc) · 973 Bytes
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
// Invoice class public interface. This hides all the implementation details
#include <string>
using namespace std;
class Invoice {
public:
Invoice(string, string, int, int); // constructor to initialize the entries
void setPartNumber(string); // set function for partNumber
string getPartNumber(); // get function for partNumber
void setPartDescription(string); // set function for partDescription
string getPartDescription(); // get function for partDescription
void setPartQuantity(int); // set function for partQuantity
int getPartQuantity(); // get function for partQuantity
void setPricePerItem(int); // set function for pricePerItem
int getPricePerItem(); //get function for pricePerItem
int getInvoiceAmount(); // function to compute invoice amount
private:
string partNumber;
string partDescription;
int partQuantity;
int pricePerItem;
};