-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpessoa.py
37 lines (27 loc) · 876 Bytes
/
pessoa.py
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
class Pessoa:
def __init__(self, nome, idade, data_nascimento, cpf, telefone):
self.__nome = nome
self.__idade = idade
self.__data_nascimento = data_nascimento
self.__cpf = cpf
self.__telefone = telefone
def getNome(self):
return self.__nome
def getIdade(self):
return self.__idade
def getDataNascimento(self):
return self.__data_nascimento
def getCpf(self):
return self.__cpf
def getTelefone(self):
return self.__telefone
def setNome(self, nome):
self.__nome = nome
def setIdade(self, idade):
self.__idade = idade
def setDataNascimento(self, data_nascimento):
self.__data_nascimento = data_nascimento
def setCpf(self, cpf):
self.__cpf = cpf
def setTelefone(self, telefone):
self.__telefone = telefone