document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1.  
  2. public class Rekening
  3. {
  4. private String name;
  5. private int saldo;
  6. private int thisPin;
  7.  
  8.  
  9.  
  10. public Rekening(int pin)
  11. {
  12. this.name = "NASABAH";
  13. thisPin = pin;
  14. saldo = 0;
  15. }
  16.  
  17. public int Pin(int pass)
  18. {
  19. if(pass == thisPin) return 1;
  20. else
  21. return 0;
  22. }
  23.  
  24. public String getName()
  25. {
  26. return name;
  27. }
  28.  
  29. public void GetSaldo(int uang)
  30. {
  31. saldo+=uang;
  32. }
  33.  
  34. public int checkSaldo()
  35. {
  36. return saldo;
  37. }
  38. }
  39.  
  40.  
');