-
Notifications
You must be signed in to change notification settings - Fork 0
/
Usuario.h
53 lines (40 loc) · 912 Bytes
/
Usuario.h
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
#ifndef _USUARIO_H_INCLUDED
#define _USUARIO_H_INCLUDED
#include "Nome.h"
#include "Email.h"
#include "Senha.h"
/**
*Classe que define os Usuarios do trabalho, atributos e métodos foram simplificados para atender as exigências da lista 1.
*/
class Usuario {
private:
Nome nome;
Email email;
Senha senha;
public:
void setNome(const Nome&);
void setEmail(const Email&);
void setSenha(const Senha&);
Nome getNome() const;
Email getEmail() const;
Senha getSenha() const;
};
inline void Usuario::setNome(const Nome &nome) {
this->nome = nome;
}
inline void Usuario::setEmail(const Email &email) {
this->email = email;
}
inline void Usuario::setSenha(const Senha &senha) {
this->senha = senha;
}
inline Nome Usuario::getNome() const {
return this->nome;
}
inline Email Usuario::getEmail() const {
return this->email;
}
inline Senha Usuario::getSenha() const {
return this->senha;
}
#endif