-
Notifications
You must be signed in to change notification settings - Fork 1
/
ContaCorrente.h
62 lines (44 loc) · 1.59 KB
/
ContaCorrente.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
* ContaCorrente.h
*
* Created on: 16 de nov de 2019
* Author: rafaelamoreira
*/
#ifndef CONTACORRENTE_H_
#define CONTACORRENTE_H_
#include <iostream>
#include "Conta.h"
#include "SaldoDiaBase.h"
class ContaCorrente: public Conta {
protected:
double limiteCredito;
public:
ContaCorrente();
ContaCorrente(Cliente * clienteNovo, double limiteCredito);
virtual ~ContaCorrente();
double getLimiteCredito();
bool debitar(double valor, std::string descricao) override;
//methods
void creditar(double valor, std::string descricao) override;
//Write the member variables to stream objects
friend std::ostream& operator << (std::ostream& out, const ContaCorrente& obj);
//Read data from stream object and fill it in member variables
friend std::istream& operator >> (std::istream& in, ContaCorrente& obj);
string type() const override;
virtual void write(std::ostream& out) const override;
virtual void read(std::istream& in) override;
void removeElemento(int elemento);
void adicionaElemento(SaldoDiaBase &db);
////getters and setters
//const Cliente& getCliente() const override;
//const std::vector<Movimentacao> getMovimentacoes() override;
//int getNumConta() const override;
////static int getProximoNumConta();
//double getSaldo() const override;
////Seta o ponteiro pro cliente
//void setCliente(Cliente *newCliente) override;
//vector<Movimentacao> obterExtrato(std::string dataIni, std::string dataFim) override;
//vector<Movimentacao> obterExtrato(std::string dataIni) override;
//vector<Movimentacao> obterExtratoMesAtual() override;
};
#endif /* CONTACORRENTE_H_ */