Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class CheckingAccount extends BankAccount {
- private int transactionCount;
- private static final int FREE_TRANSACTIONS = 3;
- private static final double TRANSACTION_FEE = 2.0;
- if (transaction > 0);
- count ++;
- public void DeductFee(){
- if(count > FREE_TRANSACTIONS){
- transaction = TRANSACTION_FEE * count;
- }else{
- else transaction = 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement