Advertisement
RazorBlade57

CheckingAccount

Feb 16th, 2017
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.41 KB | None | 0 0
  1.  
  2. public class CheckingAccount extends BankAccount {
  3.  
  4.     private int transactionCount;
  5.     private static final int FREE_TRANSACTIONS = 3;
  6.     private static final double TRANSACTION_FEE = 2.0;
  7.  
  8.     if (transaction > 0);
  9.         count ++;
  10.        
  11.    
  12.     public void DeductFee(){
  13.        
  14.         if(count > FREE_TRANSACTIONS){
  15.            
  16.             transaction = TRANSACTION_FEE * count;
  17.            
  18.         }else{
  19.            
  20.         else transaction = 0;
  21.            
  22.         }
  23.        
  24.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement