Computer Science, asked by adwaitdpathak2708, 1 month ago

Lets create a bank account. Create a class named 'BankAccount' with the following data members
1 - Name of depositor
2 - Address of depositor
3 - Type of account
4 - Balance in account
5 - Number of transactions
Class 'BankAccount' has a function for each of the following

Answers

Answered by pulokechophy77
1

Answer:

1 - Name of depositor

2 - Address of depositor

3 - Type of account

4 - Balance in account

5 - Number of transactions

Class 'UserBankAccount' has a function for each of the following

1 - Generate a unique account number for each depositor

For the first depositor, account number will be BA1000, for the second depositor it will be BA1001 and so on

2 - Display information and balance of depositor

3 - Deposit more amount in the balance of any depositor

4 - Withdraw some amount from the balance deposited

5 - Change the address of depositor

Answered by anirbansadhu
1

Answer is given in attached pdf file

Attachments:
Similar questions