Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //AGREGUE DEBAJO DEL METODO RETIRAR
- //METODO MOSTRAR
- public void mostrarDat() {
- System.out.println("DNI del cliente: "+dni);
- System.out.println("Numero de cuenta: "+nro_cuenta);
- System.out.println("Saldo actual: "+saldo_actual);
- System.out.println("Interes anula: "+interes_actual);
- }
- public static void main(String [] args) {
- //CREACION DE LA CUENTA
- Cuenta cuenta= new Cuenta(31255896,8000,10);
- cuenta.ingresar(2000);
- cuenta.actualizarSaldo();
- cuenta.retirar(5000.5);
- cuenta.mostrarDat();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement