Question: C++ INHERITANCE HELP!!!! 1) Define the class bankAccount to store a bank customers account number and balance. Suppose that account number is of type int,
C++ INHERITANCE HELP!!!!
1) Define the class bankAccount to store a bank customers account number and balance. Suppose that account number is of type int, and balance is of type double. Your class should provide the following operations:
Set the account number
Return the account number
Return the balance
Deposit money into Account
Withdraw money from Account
Print account information (Bank Name, Account number, and account balance)
Add the appropriate constructors
2)Derive the class checkingAccount from the class bankAccount. A customer receives interest, maintains a minimum balance, and pays service charges if the balance falls below the minimum balance. Add member variables to store this additional information.
In addition to the operations inherited from the base class, this class should provide the following operations:
Set interest rate
Return interest rate
Set minimum balance
Return minimum balance
Set service charges
Return service charges
Verify if the balance is less than the minimum balance
Withdraw money from checkingAccount (override the method of the base class)
Add the appropriate constructors
What to submit:
The bankAccount.h file
The bankAccount.cpp file
The checkingAccount.h file
The checkingAccount.cpp file
The test.cpp file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
