Association (Solve Needed)
Association (Solve Needed)
Association (Solve Needed)
deposit(int amount)
Withdraw(int amount)
Additional part
Additional part
(We want to preserve history of transactions for each account object. To do so
we need to develop one more class name Transaction)
8.Transaction Account sender
Account receiver
int amount
String additional-
Info 2 constructors
showInfo()
In the Account class use one/two more member variable to store transaction in-
formation and necessary member functions.
Transaction [] listOfTransaction //member
variable int totalNumberOfTransaction // mem-
ber variable
void showAllTranscation()