ZipCloudBank's meh banking app.

PremiumAccount.java 355B

12345678910111213141516171819
  1. /**
  2. * @author ZipCodeWilmington
  3. */
  4. public class PremiumAccount extends Account {
  5. private static final int OVERDRAFT_LIMIT = 100;
  6. public PremiumAccount(AccountData accountData) {
  7. super(accountData);
  8. }
  9. @Override
  10. protected boolean canWithdraw(int amount) {
  11. return getBalance() + OVERDRAFT_LIMIT >= amount;
  12. }
  13. }