Defined a class bankAccount to store a bank customer’s account number and balance. Derived the class checkingAccount and savingAccount from the class bankAccount. This class inherits members to store the account number and the balance from the base class(bankAccont).
- Sets the account number
- Retrieves the account number
- Deposit and withdraw money tapped
- Prints account information
- Sets the interest rate, minimun balance and service charge
- Retrieves the interest rate, minimun balance and service charge
- Post interest
- Verifies if the balance is less than the minimum balance
- Withdraw (override the method of the base class), and print account information
- Sets the intrest rate
- Retrieve the intrest rate
- Post interest
- Withdraw (override the method of the base class), and print account information