Program on inheritance. BankAccount is the base class, MoneyMarketAccount and CDAccount are derived from BankAccount.