Advertisement
marcosam
Aug 22nd, 2023
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //AGREGUE DEBAJO DEL METODO RETIRAR
  2. //METODO MOSTRAR
  3.  
  4. public void mostrarDat() {
  5. System.out.println("DNI del cliente: "+dni);
  6. System.out.println("Numero de cuenta: "+nro_cuenta);
  7. System.out.println("Saldo actual: "+saldo_actual);
  8. System.out.println("Interes anula: "+interes_actual);
  9.  
  10. }
  11.  
  12. public static void main(String [] args) {
  13.  
  14. //CREACION DE LA CUENTA
  15. Cuenta cuenta= new Cuenta(31255896,8000,10);
  16.  
  17. cuenta.ingresar(2000);
  18. cuenta.actualizarSaldo();
  19. cuenta.retirar(5000.5);
  20.  
  21. cuenta.mostrarDat();
  22.  
  23. }
  24. }
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement