Question: Design a C + + program that simulates a simple bank account system. Your program should have the following classes: BankAcct: Base class represen ng
Design a C program that simulates a simple bank account system. Your program should have the following
classes:
BankAcct: Base class represen ng a bank account. It should have data members for account
number, account holder name, and balance. Include member methods to deposit, withdraw, and
display account informa on
SavingsAcct: Derived class from BankAcct represen ng a savings account. It should have an
addi onal data member for interest rate. Include a member method to calculate interest based on
the current balance and interest rate.
CheckingAcct: Derived class from BankAcct represen ng a checking account. It should have an
addi onal data member for overdra$ limit Include a member method to check if a withdrawal is
within the overdra$ limit
Create instances of this class using constructors and demonstrate the use of all its methods from
the class and derived classes.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
