Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Class dataNasabah menyimpan pin dan saldo nasabah
- *
- * @author Muhammad Naufaldillah
- * @version 24 November 2020
- */
- public class dataNasabah
- {
- private String pin = "122345";
- private int balance = 3000000;
- public dataNasabah()
- {
- }
- public String getPin()
- {
- return this.pin;
- }
- public int getBalance()
- {
- return this.balance;
- }
- public void depositBalance(int amount)
- {
- balance = balance + amount;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement