Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Dope gangster bank
- *
- * @author (Peter)
- * @version (1.0)
- */
- public class BankAccount
- {
- public int balance;
- public int deposit;
- public int withdraw;
- /**
- * How Much CA$H do you want?
- */
- public BankAccount(int amount)
- {
- balance = amount;
- }
- public int withdraw(int amount)
- {
- balance -=amount;
- return balance;
- }
- public int deposit(int amount)
- {
- balance +=amount;
- return balance;
- }
- public int getBalance()
- {
- return balance;
- }
- }
Add Comment
Please, Sign In to add comment