Package edu.pdx.cs410J.net
Class SynchronizedBankAccount
java.lang.Object
edu.pdx.cs410J.net.BankAccount
edu.pdx.cs410J.net.SynchronizedBankAccount
Synchronized methods ensure that the data in the balance is
accessed correctly.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
id
int id
-
-
Constructor Details
-
SynchronizedBankAccount
public SynchronizedBankAccount()
-
-
Method Details
-
getBalance
- Overrides:
getBalance
in classBankAccount
-
setBalance
- Overrides:
setBalance
in classBankAccount
-
doTransaction
-