-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
22 lines (18 loc) · 964 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//importamos las classes.
import {Cliente} from "./Cliente.js";
//import { CuentaAhorro } from "./Cuentas/CuentaAhorros.js";
//import { CuentaCorriente } from "./Cuentas/CuentaCorriente.js";
//import { CuentaNomina } from "./Cuentas/cuentaNomina.js";
import { Director } from "./Empleados/Director.js";
import { Empleado } from "./Empleados/Empleado.js";
import { Gerente } from "./Empleados/Gerente.js";
import { SistemaAutenticacion } from "./Empleados/SistemaAutenticacion.js";
//const cliente = new Cliente("Leonardo","851234","9366423");
//const cliente2= new Cliente("Maria","12345","9366345");
const empleado = new Empleado("Juan Perez",75198643,10000);
const gerente = new Gerente("Pedro Rivas",75198644,12000);
const director = new Director("Elena Moreno",75198645,15000);
empleado.asignarClave("12345");
console.log(SistemaAutenticacion.login(empleado,"12345"));
gerente.asignarClave("11111");
console.log(SistemaAutenticacion.login(gerente,"1111"));