-
Notifications
You must be signed in to change notification settings - Fork 0
/
pessoa.hpp
89 lines (74 loc) · 1.67 KB
/
pessoa.hpp
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#ifndef PESSOA_H_
#define PESSOA_H_
#include <string>
class Pessoa
{
protected:
std::string nome;
std::string cpf;
std::string dataNascimento;
std::string endereco;
std::string email;
std::string telefone;
unsigned int anoAdmissao;
public:
Pessoa(std::string n, std::string c, std::string dn, unsigned int aa);
void setendereco(std::string end);
void setemail(std::string e);
void settelefone(std::string tel);
std::string getnome();
std::string getcpf();
std::string getdataNascimento();
std::string getendereco();
std::string getemail();
std::string gettelefone();
unsigned int getanoAdmissao();
};
Pessoa::Pessoa(std::string n, std::string c, std::string dn, unsigned int aa)
{
this->nome = n;
this->cpf = c;
this->dataNascimento = dn;
this->anoAdmissao = aa;
}
void Pessoa::setendereco(std::string end)
{
this->endereco = end;
}
void Pessoa::setemail(std::string e)
{
this->email = e;
}
void Pessoa::settelefone(std::string tel)
{
this->telefone = tel;
}
std::string Pessoa::getnome()
{
return this->nome;
}
std::string Pessoa::getcpf()
{
return this->cpf;
}
std::string Pessoa::getdataNascimento()
{
return this->dataNascimento;
}
std::string Pessoa::getendereco()
{
return this->endereco;
}
std::string Pessoa::getemail()
{
return this->email;
}
std::string Pessoa::gettelefone()
{
return this->telefone;
}
unsigned int Pessoa::getanoAdmissao()
{
return this->anoAdmissao;
}
#endif