The program has three main parts:
i. A base class called BankAccount handles the common features of all bank accounts.
ii. A class for Savings Accounts that calculates interest on the balance.
iii. A class for Checking Accounts that allows for overdrafts (spending more than the available
balance), but with a fee.
We also have tiered interest rates in the SavingsAccount, meaning the interest rate depends
on how much money you have in the account. The more money you have, the higher the interest
rate you get.
Classes in the Program:
i. BankAccount Class (Base Class)
The BankAccount class is the base for both the Savings Account and the Checking Account. It
contains shared functionality like deposits and withdrawals.
• Account Holder’s Name: This is the person who owns the account.
• Balance: This shows how much money is in the account.