Question
DOING IT IN C++ Build a class named bank_account to represent a bank account. Include the following members: Data members: 1. Name of the depositor.
DOING IT IN C++
Build a class named bank_account to represent a bank account. Include the following members:
Data members:
1. Name of the depositor.
2. Account number.
3. Type of account.
4. Balance amount in the account.
Member functions:
1. To assign initial values.
2. To deposit an amount.
3. To withdraw an amount after checking the balance.
4. To display the name and balance.
Construct the main program in C++ to test the program.
The output of the program may look like this:
You have to pay RM500 to open your account You have to store at least RM100 to keep your account active Would you want to open an account???? If Yes press 1 If No press 0: 0 Thank you, see again |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started