feat: implement TransactionProcessor with type-based dispatch for all transaction operations
This commit is contained in:
@@ -5,6 +5,11 @@ public class BankAccount {
|
||||
private final int accountId;
|
||||
private long balance;
|
||||
|
||||
/*
|
||||
* Students may introduce additional fields
|
||||
* if required by their synchronization strategy.
|
||||
*/
|
||||
|
||||
public BankAccount(int accountId, long initialBalance) {
|
||||
this.accountId = accountId;
|
||||
this.balance = initialBalance;
|
||||
|
||||
Reference in New Issue
Block a user