-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathusuario.py
46 lines (35 loc) · 898 Bytes
/
usuario.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
38
39
40
41
42
43
44
45
46
from abc import ABC, abstractmethod
class Usuario(ABC):
@abstractmethod
def __init__(self, nome: str, email: str, senha: str, cpf: int):
self.__nome = nome
self.__email = email
self.__senha = senha
self.__cpf = cpf
@property
def nome(self):
return self.__nome
@nome.setter
def nome(self, nome: str):
self.__nome = nome
@property
def email(self):
return self.__email
@email.setter
def email(self, email: str):
self.__email = email
@property
def senha(self):
return self.__senha
@senha.setter
def senha(self, senha: str):
self.__senha = senha
@property
def cpf(self):
return self.__cpf
@cpf.setter
def cpf(self, cpf: int):
self.__cpf = cpf
@abstractmethod
def cadastrar(self):
pass