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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!