-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
18 lines (13 loc) · 741 Bytes
/
index.js
File metadata and controls
18 lines (13 loc) · 741 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import {Cliente} from "./Cliente.js";
import { Gerente } from "./Funcionários/Gerente.js";
import { Diretor } from "./Funcionários/Diretor.js";
import { SistemaAutenticacao } from "./SistemaAutenticacao.js";
const diretor = new Diretor("Rodrigo", 10000, 12345678955);
diretor.cadastrarSenha("123456789")
const gerente = new Gerente ("Ricardo", 5000, 98765432150);
gerente.cadastrarSenha("12345")
const cliente = new Cliente("Renata", 56849731244, "456")
const gerenteEstaLogado = SistemaAutenticacao.login(gerente, "12345")
const diretorEstaLogado = SistemaAutenticacao.login(diretor, "123456789")
const clienteEstaLogado = SistemaAutenticacao.login(cliente, "456")
console.log(gerenteEstaLogado, diretorEstaLogado, clienteEstaLogado)