Advertisement
Guest User

principal.java

a guest
Mar 20th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.71 KB | None | 0 0
  1. /**
  2.  *
  3.  */
  4. package projetoAula01;
  5.  
  6. /**
  7.  * @author Pietro
  8.  *
  9.  */
  10. public class principal {
  11.  
  12.     /**
  13.      *
  14.      */
  15.     public principal() {
  16.         // TODO Auto-generated constructor stub
  17.     }
  18.  
  19.     /**
  20.      * @param args
  21.      */
  22.     public static void main(String[] args) {
  23.         // TODO Auto-generated method stub
  24.         clienteBanco cliente01;
  25.        
  26.         cliente01 = new clienteBanco("José Carlos Ferro Junior", "100", 598);
  27.        
  28.         System.out.println(cliente01.nomeCliente);
  29.         System.out.println("Seu saldo: " + cliente01.retornaSaldo());
  30.         cliente01.creditarSaldo(500);
  31.         System.out.println("Seu saldo: " + cliente01.retornaSaldo());
  32.         cliente01.debitarSaldo(500);
  33.         System.out.println("Seu saldo: " + cliente01.retornaSaldo());
  34.     }
  35.  
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement