|
1 | 1 | #include "Aluno.hpp" |
| 2 | +#include "Turma.hpp" |
2 | 3 |
|
3 | 4 | Aluno::Aluno() |
4 | 5 | { |
5 | 6 | this->matriculaInstituicao = ""; |
6 | 7 | this->codigo = -1; |
7 | | - this->CPF = ""; |
8 | | - this->RG = ""; |
9 | | - this->endereco = ""; |
10 | | - this->telefone = ""; |
11 | | - this->email = ""; |
12 | | - this->nome = ""; |
| 8 | + this->setCPF(""); |
| 9 | + this->setRG(""); |
| 10 | + this->setEndereco(""); |
| 11 | + this->setTelefone(""); |
| 12 | + this->setEmail(""); |
| 13 | + this->setNome(""); |
13 | 14 | this->qtdAlunos++; |
14 | 15 | } |
15 | 16 |
|
16 | 17 | Aluno::~Aluno() |
17 | 18 | { |
18 | | - cout << "Aluno CANCELADO" < endl; |
| 19 | + this->qtdAlunos--; |
| 20 | + cout << "Aluno CANCELADO" << endl; |
19 | 21 | } |
20 | 22 |
|
21 | 23 | void matricular(Turma t); |
22 | 24 |
|
23 | 25 | string Aluno::getMatriculaInstituicao() |
24 | 26 | { |
25 | | - return this.matriculaInstituicao; |
| 27 | + return this->matriculaInstituicao; |
26 | 28 | } |
27 | 29 |
|
28 | 30 | void Aluno::setMatriculaInstituicao(string matriculaInstituicao) |
29 | 31 | { |
30 | | - this.matriculaInstituicao = matriculaInstituicao; |
| 32 | + this->matriculaInstituicao = matriculaInstituicao; |
31 | 33 | } |
32 | 34 |
|
33 | 35 | int Aluno::getCodigo() |
34 | 36 | { |
35 | | - return this.codigo; |
| 37 | + return this->codigo; |
36 | 38 | } |
37 | 39 |
|
38 | 40 | void Aluno::setCodigo(int codigo) |
39 | 41 | { |
40 | | - this.codigo = codigo; |
41 | | -} |
42 | | - |
43 | | -string Aluno::getCPF() |
44 | | -{ |
45 | | - return this.CPF; |
46 | | -} |
47 | | - |
48 | | -void Aluno::setCPF(string CPF) |
49 | | -{ |
50 | | - this.CPF = CPF; |
51 | | -} |
52 | | - |
53 | | -string Aluno::getRG() |
54 | | -{ |
55 | | - return this.RG; |
56 | | -} |
57 | | - |
58 | | -void Aluno::setRG(string RG) |
59 | | -{ |
60 | | - this.RG = RG; |
61 | | -} |
62 | | - |
63 | | -string Aluno::getEndereco() |
64 | | -{ |
65 | | - return this.endereco; |
66 | | -} |
67 | | - |
68 | | -void Aluno::setEndereco(string endereco) |
69 | | -{ |
70 | | - this.endereco = endereco; |
71 | | -} |
72 | | - |
73 | | -string Aluno::getTelefone() |
74 | | -{ |
75 | | - return this.telefone; |
76 | | -} |
77 | | - |
78 | | -void Aluno::setTelefone(string telefone) |
79 | | -{ |
80 | | - this.telefone = telefone; |
81 | | -} |
82 | | - |
83 | | -string Aluno::getEmail() |
84 | | -{ |
85 | | - return this.email; |
86 | | -} |
87 | | - |
88 | | -void Aluno::setEmail(string email) |
89 | | -{ |
90 | | - this.email = email; |
91 | | -} |
92 | | - |
93 | | -string Aluno::getNome() |
94 | | -{ |
95 | | - return this.nome; |
96 | | -} |
97 | | - |
98 | | -void Aluno::setNome(string nome) |
99 | | -{ |
100 | | - this.nome = nome; |
| 42 | + this->codigo = codigo; |
101 | 43 | } |
102 | 44 |
|
103 | 45 | int Aluno::getQtdAlunos() |
104 | 46 | { |
105 | | - return this.qtdAlunos; |
| 47 | + return this->qtdAlunos; |
106 | 48 | } |
107 | 49 |
|
108 | 50 | void Aluno::setQtdAlunos(int qtdAlunos) |
109 | 51 | { |
110 | | - this.qtdAlunos = qtdAlunos; |
| 52 | + this->qtdAlunos = qtdAlunos; |
111 | 53 | } |
0 commit comments