Design class called Bank with the following descriptions:
Data members:
name : to store the name of the depositor
acno : to store the account number
type : to store type of the account
bal : to store the balance amount in the account
Member functions:
initialise( ) : to assign the data members with any value.
depo(int a ) : where a is the amount to be deposited and the variable bal is to be updated.
withdraw( int a) : where a is the amount to be withdrawn after checking the balance (Minimum balance should be ` 1000) and the variable bal is to be updated.
display( ) : to print all the details.
Write the main method to create the object of the class and call the above methods.
Answers
Answered by
1
Program :- {JAVA}
* Go through the attachment , answered by me , {tech issues, inappropriate words usage;)
Attachments:
Similar questions