-
Notifications
You must be signed in to change notification settings - Fork 0
/
Transactions.h
executable file
·46 lines (37 loc) · 1.14 KB
/
Transactions.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
#pragma once
#include <string>
using namespace std;
class Transactions
{
friend ostream & operator<<(ostream &output, const Transactions &transaction);
public:
//open account takes tracsaction type, last name, first name, account number
Transactions(char tType, string lastName, string firstName, int account);
//Deposits
//Withdrawls
Transactions(char tType, int account, int ammount);
//Transfer
Transactions(char tType, int account, int ammount, int toAccount);
//History
Transactions(char tType, int account);
~Transactions();
bool setTransactionType(char tType);
bool setFirstName(string);
bool setLastName(string);
bool setAccountNumber(int);
bool setAmount(int);
bool setTransferAccount(int);
bool setTransactionSuccess(bool statment);
char getTransactionType()const;
string getFirstName() const;
string getLastName() const;
int getAccountNumber() const;
int getAmount() const;
int getTransferToAccount() const;
bool getTransactionSuccess() const;
private:
char transactionType;
int accountNumber, amount, transferAcc;
string lastName, firstName;
bool success = false;
};