attached is a zip of my C++ program called Lab5. (also, there is an complete.exe file - this is the finished program that i have to duplicate.)
I am seriously stuck on this assignment. the part that i am stuck on is on the first two options given to the user. the user is allowed to press 1 to create a checking account and 2 to create a savings account. the user creates two accounts and then either deposits/withdraws/showbalance/or transfers money of either account.
the part that i'm stuck on is creating the checking or savings account object with the NEW operator and assigning it to an Array of pointers (which point to objects of the BankAccount class - which both Checking and Savings inherit from.) doing this, i'm allowed to use the functions of the BankAccount class, but not the Checkings or Savings classes. I've tried to use static_cast but it doesn't seem to work like i think it would. any help including simple comments on possibilites would greatly be appriciated. thanks.
~Benjamin