-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcurrent.h
38 lines (30 loc) · 937 Bytes
/
current.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
#ifndef CURRENT_H
#define CURRENT_H
#include <vector>
#include "account.h"
class Operation;
class Current : public Account
{
public:
Current(int ID, BigInteger cash, Date * = new Date(), const string& name = "");
// financial operations
virtual bool Deposite(BigInteger, Date * = new Date());
virtual bool WithDraw(BigInteger, Date * = new Date());
virtual BigInteger GetBalance();
virtual BigInteger Benefit(Date * = new Date());
// display operations
virtual int GetID();
virtual string ToString();
virtual string DeepString();
private:
int myID;
int myNumber;
BigInteger myBalance;
string myName;
vector <Operation *> myOprs;
Date *myInitialDate;
const static BigInteger ourLeastBalance;
const static int ourInterestRate;
static int ourCount;
};
#endif // CURRENT_H