SHARE
TWEET

principal.java

a guest Mar 20th, 2017 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
Want to get better at Java?
Learn to code Java in 2017
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top