Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public abstract class Transaction
- {
- private int accountNumber;
- private TollDatabase tollDatabase;
- public Transaction(int userAccountNumber,TollDatabase gateTollDatabase)
- {
- accountNumber = userAccountNumber;
- }
- public int getAccountNumber()
- {
- return accountNumber;
- }
- public TollDatabase getTollDatabase()
- {
- return tollDatabase;
- }
- abstract public void execute();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement