Advertisement
Ramdan51-062

Transaction

Oct 26th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.47 KB | None | 0 0
  1. public abstract class Transaction
  2. {
  3.     private int accountNumber;
  4.     private TollDatabase tollDatabase;
  5.     public Transaction(int userAccountNumber,TollDatabase gateTollDatabase)
  6.     {
  7.         accountNumber = userAccountNumber;        
  8.     }
  9.    
  10.     public int getAccountNumber()
  11.     {
  12.         return accountNumber;
  13.     }
  14.    
  15.     public TollDatabase getTollDatabase()
  16.     {
  17.         return tollDatabase;
  18.     }
  19.    
  20.     abstract public void execute();
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement