-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexpense.h
More file actions
41 lines (31 loc) · 783 Bytes
/
Copy pathexpense.h
File metadata and controls
41 lines (31 loc) · 783 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef EXPENSE_H
#define EXPENSE_H
#include <iostream>
using namespace std;
class Expense {
int expenseId;
int userId;
string date;
string item;
string amount;
public:
Expense(int expenseId=0, int userId=0, string date="", string item="", string amount=""){
this->expenseId = expenseId;
this->userId = userId;
this->date = date;
this->item = item;
this->amount = amount;
}
bool operator <(const Expense& s1) const;
void setExpenseId(int newExpenseId);
void setUserId(int newUserId);
void setDate(string newDate);
void setItem(string newItem);
void setAmount(string newAmount);
int getExpenseId();
int getUserId();
string getDate();
string getItem();
string getAmount();
};
#endif