ymorphic calls of the functions. Note: Polymorphic calls for the functions are necessary. Necessary constructor, Destructors, setters, getters and other functions should also be defined.
Course: Object Oriented programming
Lnaguage: C++
You have to solve the Make the program correctly and in 2 hours.
kindly Make program correct as much as you can.
Question:
Develop a polymorphic banking program using the Account hierarchy in which two types of Accounts can be created i.e.Current Account and Saving Account respectively. Each account must have to give the interest to the bank depending upon their account type. A function of name InterestRate() will calculate the interest of account and returns the interest amount. Current Account has annual interest rate of 0.1% of actual amount and SavingAccount will have to pay interest rate of 1.0% of actual amount. Also write a main function for polymorphic calls of the functions.
Note:
- Polymorphic calls for the functions are necessary.
- Necessary constructor, Destructors, setters, getters and other functions should also be defined.
Step by step
Solved in 2 steps