Created
November 19, 2010 16:15
-
-
Save plagelao/706704 to your computer and use it in GitHub Desktop.
Interfaz de usuario que cumple la SOLID
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Cajero implements InteresadoEnAccesoACuenta { | |
public void muestraLaPantallaPrincipal() { | |
Banco banco = new Banco(new OperacionesBancariasBancoManolito(), | |
this); | |
banco.obtenerCuenta(obtenCredenciales()); | |
} | |
public void cuentaObtenida(Cuenta cuenta) { | |
mostrarInformacionDeLacuenta(cuenta); | |
} | |
public void cuentaAnulada() { | |
muestraUnErrorPorCuentaAnulada(); | |
} | |
public void credencialesIncorrectas() { | |
pideUnasNuevasCredenciales(); | |
} | |
public void bancoInaccesible() { | |
pasaAModoFueraDeServico(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment