12345678910111213141516171819 |
-
-
- /**
- * @author ZipCodeWilmington
- */
- public class PremiumAccount extends Account {
-
- private static final int OVERDRAFT_LIMIT = 100;
-
- public PremiumAccount(AccountData accountData) {
- super(accountData);
- }
-
- @Override
- protected boolean canWithdraw(int amount) {
- return getBalance() + OVERDRAFT_LIMIT >= amount;
- }
- }
|