your code doesnt compile.
Compiles fine for me, I made sure of it before I attached it. Which I made a point of saying.
g++ -c -g bankAccount.cpp
It doesn't link into an executable because it doesn't have a main() (or much of anything else that makes a complete program), it's a usable example of how to derive a subclass.
I like your code, raptr_dflo, buh why not make use of cout instead of printf()?
Thanks tkud! And to answer your question: no good reason, they both work just fine. :)