Question: Define a class for a bank account that includes the following data 1 Name of depositer 2 Account number 3 Type of account 4 Balance
Define a class for a bank account that includes the following data
1 Name of depositer
2 Account number
3 Type of account
4 Balance ammount in account
The class also contain the following function members
1 A constructor to assign initial values
2 Deposit function to deposit some amount. It should accept the parameter.
3 Withdraw function to withdraw an amount after checking the balance. It should accept the amount as parameter.
4 Display function to display name and balance
write complete program in c++
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
