public class Withdrawal extends Transaction
Constructor and Description |
---|
Withdrawal(int date,
int amount) |
Modifier and Type | Method and Description |
---|---|
int |
getAmount() |
void |
replay(PermanentAccount target)
The design pattern "Strategy" is used for implementing the
synchronisation of offline account proxies with the permanent accounts.
|
java.lang.String |
toString() |
getDate
public void replay(PermanentAccount target)
this
transaction on the
real account. Note that the withdrawal from the permanent account is
performed for the correct datereplay
in class Transaction
target
- the permanent account on which this
transaction
is supposed to be carried outpublic int getAmount()
public java.lang.String toString()
toString
in class java.lang.Object