generating someting dynamically
Hi, I have this assignment due monday and i'm really stuck with a couple of things:
I'm supposed to create a program for a bank. I have to have one base class ACCOUNT and two sub-classes, CHECKING, and SAVINGS. These classes will have virtual functions so that I can dynamically create the object without knowing the type. I can't figure out how to first create an account and then changing that to a checking or a savings. I also can't figure out how to use the virtual functions, since the program would never have to go into those functions that are in the ACCOUNT class. I don't wan't the code to the whole program, but just an exemple of how I can make these objects. If any more info is needed please reply.