Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit f86385f

Browse files
committed
Todas as classes mais ou menos implementadas
1 parent 6b984a6 commit f86385f

14 files changed

+270
-3
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#ifndef _CONTACC_
2+
#define _CONTACC_
3+
#include "Conta.hpp"
4+
5+
class ContaCorrenteC: public Conta
6+
{
7+
public:
8+
ContaCorrenteC(string numConta, string agencia, float saldo) : Conta(numConta, agencia, saldo){}
9+
~ContaCorrenteC();
10+
};
11+
12+
#endif
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#include "ContaCorrenteL.hpp"
2+
3+
float ContaCorrenteL::getValorLimite()
4+
{
5+
return this->valorLimite;
6+
}
7+
8+
void ContaCorrenteL::setValorLimite(float valorLimite)
9+
{
10+
this->valorLimite = valorLimite;
11+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#ifndef _CONTACL_
2+
#define _CONTACL_
3+
#include "Conta.hpp"
4+
5+
class ContaCorrenteL: public Conta
6+
{
7+
private:
8+
float valorLimite;
9+
public:
10+
ContaCorrenteL(string numConta, string agencia, float saldo) : Conta(numConta, agencia, saldo){}
11+
~ContaCorrenteL();
12+
float getValorLimite();
13+
void setValorLimite(float valorLimite);
14+
};
15+
16+
#endif
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#include "ContaPoupanca.hpp"
2+
3+
tm ContaPoupanca::getDataAniversarioConta()
4+
{
5+
return this->dataAniversarioConta;
6+
}
7+
8+
void ContaPoupanca::setDataAniversarioConta(tm dataAniversarioConta)
9+
{
10+
this->dataAniversarioConta = dataAniversarioConta;
11+
}
12+
13+
ContaPoupanca::~ContaPoupanca()
14+
{
15+
cout << "Conta poupanca deletada." << endl;
16+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#ifndef _CONTAP_
2+
#define _CONTAP_
3+
#include "Conta.hpp"
4+
5+
class ContaPoupanca: public Conta
6+
{
7+
private:
8+
tm dataAniversarioConta;
9+
10+
public:
11+
ContaPoupanca(string numConta, string agencia, float saldo) : Conta(numConta, agencia, saldo){}
12+
~ContaPoupanca();
13+
14+
tm getDataAniversarioConta();
15+
void setDataAniversarioConta(tm dataAniversarioConta);
16+
};
17+
18+
#endif

cpp/lista3jordana/Correntista.cpp

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
#include "Correntista.hpp"
2+
3+
Correntista::Correntista(string endereco, string telefone, string email/*, Conta conta*/)
4+
{
5+
this->setEndereco(endereco);
6+
this->setTelefone(telefone);
7+
this->setEmail(email);
8+
// this->setConta(conta);
9+
}
10+
11+
Correntista::~Correntista()
12+
{
13+
cout << "Correntista deletado." << endl;
14+
}
15+
16+
string Correntista::getEndereco()
17+
{
18+
return this->endereco;
19+
}
20+
21+
void Correntista::setEndereco(string endereco)
22+
{
23+
this->endereco = endereco;
24+
}
25+
26+
string Correntista::getTelefone()
27+
{
28+
return this->telefone;
29+
}
30+
31+
void Correntista::setTelefone(string telefone)
32+
{
33+
this->telefone = telefone;
34+
}
35+
36+
string Correntista::getEmail()
37+
{
38+
return this->email;
39+
}
40+
41+
void Correntista::setEmail(string email)
42+
{
43+
this->email = email;
44+
}
45+
46+
/*
47+
Conta Correntista::getConta()
48+
{
49+
return this->conta;
50+
}
51+
52+
void Correntista::setConta(Conta conta)
53+
{
54+
this->conta = conta;
55+
}
56+
*/

cpp/lista3jordana/Correntista.hpp

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#ifndef _CORRENTISTA_
2+
#define _CORRENTISTA_
3+
#include "Conta.hpp"
4+
5+
class Correntista
6+
{
7+
private:
8+
string endereco;
9+
string telefone;
10+
string email;
11+
// Conta conta;
12+
13+
public:
14+
Correntista(string endereco, string telefone, string email/*, Conta conta*/);
15+
~Correntista();
16+
string getEndereco();
17+
void setEndereco(string endereco);
18+
string getTelefone();
19+
void setTelefone(string telefone);
20+
string getEmail();
21+
void setEmail(string email);
22+
Conta getConta();
23+
void setConta(Conta conta);
24+
};
25+
26+
#endif

cpp/lista3jordana/Organizacao.cpp

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#include "Organizacao.hpp"
2+
3+
Organizacao::Organizacao(string nomeFantasia, string razaoSocial, string CNPJ)
4+
{
5+
this->setNomeFantasia(nomeFantasia);
6+
this->setRazaoSocial(razaoSocial);
7+
this->setCNPJ(CNPJ);
8+
}
9+
10+
Organizacao::~Organizacao()
11+
{
12+
cout << "Organizacao deletada." << endl;
13+
}
14+
15+
string Organizacao::getNomeFantasia()
16+
{
17+
return this->nomeFantasia;
18+
}
19+
20+
void Organizacao::setNomeFantasia(string nomeFantasia)
21+
{
22+
this->nomeFantasia = nomeFantasia;
23+
}
24+
25+
string Organizacao::getRazaoSocial()
26+
{
27+
return this->razaoSocial;
28+
}
29+
30+
void Organizacao::setRazaoSocial(string razaoSocial)
31+
{
32+
this->razaoSocial = razaoSocial;
33+
}
34+
35+
string Organizacao::getCNPJ()
36+
{
37+
return this->CNPJ;
38+
}
39+
40+
void Organizacao::setCNPJ(string CNPJ)
41+
{
42+
this->CNPJ = CNPJ;
43+
}

cpp/lista3jordana/Organizacao.hpp

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#ifndef _ORGANIZACAO_
2+
#define _ORGANIZACAO_
3+
#include <iostream>
4+
5+
using namespace std;
6+
7+
class Organizacao
8+
{
9+
private:
10+
string nomeFantasia;
11+
string razaoSocial;
12+
string CNPJ;
13+
14+
public:
15+
Organizacao(string nomeFantasia, string razaoSocial, string CNPJ);
16+
~Organizacao();
17+
18+
string getNomeFantasia();
19+
void setNomeFantasia(string nomeFantasia);
20+
string getRazaoSocial();
21+
void setRazaoSocial(string razaoSocial);
22+
string getCNPJ();
23+
void setCNPJ(string CNPJ);
24+
};
25+
26+
#endif

cpp/lista3jordana/Pessoa.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ class Pessoa
1717
public:
1818
Pessoa(string nome, tm dataNasc, string CPF, string RG);
1919
~Pessoa();
20-
2120
string getNome();
2221
void setNome(string nome);
2322
tm getDataNasc();

0 commit comments

Comments
 (0)