Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package Banco;
- /**
- *
- * @author alumno
- */
- public class CuentaPpal {
- public static void main (String[] args){
- Cuenta cuenta_1=new Cuenta("Juan", 1000);
- Cuenta cuenta_2=new Cuenta("Jose", 0);
- cuenta_1.depositar(1000);
- cuenta_2.depositar(500);
- System.out.println(cuenta_1.toString());//juan y 1000
- System.out.println(cuenta_2.toString ());//jose y 0
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement