-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlongterm.h
40 lines (31 loc) · 976 Bytes
/
longterm.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
#ifndef LONGTERM_H
#define LONGTERM_H
#include "account.h"
#include <vector>
class Operation;
class LongTerm : public Account
{
public:
LongTerm(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;
Date *myLastBenefitDate;
const static BigInteger ourLeastBalance;
const static int ourInterestRate;
static int ourCount;
};
#endif // LONGTERM_H