Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cuenta_2.setTitular("Soy el nuevo titular"); //Cambiará el titular del objeto
- cuenta_2.ingresar(900);
- cuenta_2.retirar(10);
- alert(cuenta_2.toString());
- alert(cuenta_2.getTitular()); //Leerá el titular actual del objeto
- alert(cuenta_2.getCantidad()); //Leerá la cantidad del objeto
Add Comment
Please, Sign In to add comment