Develop a polymorphic banking program that will contain a base class Account and two derived
classes Saving Account and Current Account. Create two functions Withdraw () and Deposit () for
each account type. On the deposit of cash in saving account user will get interest on the basis of Interest
rate Each transaction, in the Current Account only, will
cost 0.5$. Create Getbalance() function that will show the account’s balance after transactions.
Answers
Answered by
2
Answer:
Transaction account - 23
Withdraw --14. 4
Get balance ---✨24.5
Hence Transaction with each balance ---- 5.7
Similar questions
Political Science,
2 months ago
Geography,
2 months ago
Math,
4 months ago
Math,
9 months ago
Science,
9 months ago